blob: 05739e15b0434f9c7a9ccc624982fbd4dcd7a74b [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Viet-Trung Luu47e2e352015-03-04 16:38:18 -08005#include "shell/in_process_native_runner.h"
6
James Robinsonb4b7af22014-12-05 11:21:01 -08007#include "shell/context.h"
James Robinson646469d2014-10-03 15:33:28 -07008#include "testing/gtest/include/gtest/gtest.h"
9
James Robinson646469d2014-10-03 15:33:28 -070010namespace shell {
11
Viet-Trung Luu47e2e352015-03-04 16:38:18 -080012TEST(InProcessNativeRunnerTest, NotStarted) {
James Robinson646469d2014-10-03 15:33:28 -070013 Context context;
14 base::MessageLoop loop;
15 context.Init();
Viet-Trung Luu47e2e352015-03-04 16:38:18 -080016 InProcessNativeRunner runner(&context);
Viet-Trung Luu0ba64d62015-02-19 14:50:19 -080017 context.Shutdown();
James Robinson646469d2014-10-03 15:33:28 -070018 // Shouldn't crash or DCHECK on destruction.
19}
20
21} // namespace shell