James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 1 | // 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 Luu | 47e2e35 | 2015-03-04 16:38:18 -0800 | [diff] [blame] | 5 | #include "shell/in_process_native_runner.h" |
| 6 | |
James Robinson | b4b7af2 | 2014-12-05 11:21:01 -0800 | [diff] [blame] | 7 | #include "shell/context.h" |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 8 | #include "testing/gtest/include/gtest/gtest.h" |
| 9 | |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 10 | namespace shell { |
| 11 | |
Viet-Trung Luu | 47e2e35 | 2015-03-04 16:38:18 -0800 | [diff] [blame] | 12 | TEST(InProcessNativeRunnerTest, NotStarted) { |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 13 | Context context; |
| 14 | base::MessageLoop loop; |
| 15 | context.Init(); |
Viet-Trung Luu | 47e2e35 | 2015-03-04 16:38:18 -0800 | [diff] [blame] | 16 | InProcessNativeRunner runner(&context); |
Viet-Trung Luu | 0ba64d6 | 2015-02-19 14:50:19 -0800 | [diff] [blame] | 17 | context.Shutdown(); |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 18 | // Shouldn't crash or DCHECK on destruction. |
| 19 | } |
| 20 | |
| 21 | } // namespace shell |