| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/process/process.h" | 8 #include "base/process/process.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "mojo/shell/public/cpp/identity.h" | 10 #include "services/shell/public/cpp/identity.h" |
| 11 #include "mojo/shell/public/cpp/shell_test.h" | 11 #include "services/shell/public/cpp/shell_test.h" |
| 12 #include "mojo/shell/public/interfaces/shell.mojom.h" | 12 #include "services/shell/public/interfaces/shell.mojom.h" |
| 13 #include "mojo/shell/tests/lifecycle/lifecycle_unittest.mojom.h" | 13 #include "services/shell/tests/lifecycle/lifecycle_unittest.mojom.h" |
| 14 #include "mojo/shell/tests/util.h" | 14 #include "services/shell/tests/util.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace shell { | 17 namespace shell { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const char kTestAppName[] = "mojo:lifecycle_unittest_app"; | 20 const char kTestAppName[] = "mojo:lifecycle_unittest_app"; |
| 21 const char kTestParentName[] = "mojo:lifecycle_unittest_parent"; | 21 const char kTestParentName[] = "mojo:lifecycle_unittest_parent"; |
| 22 const char kTestExeName[] = "exe:lifecycle_unittest_exe"; | 22 const char kTestExeName[] = "exe:lifecycle_unittest_exe"; |
| 23 const char kTestPackageName[] = "mojo:lifecycle_unittest_package"; | 23 const char kTestPackageName[] = "mojo:lifecycle_unittest_package"; |
| 24 const char kTestPackageAppNameA[] = "mojo:lifecycle_unittest_package_app_a"; | 24 const char kTestPackageAppNameA[] = "mojo:lifecycle_unittest_package_app_a"; |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 463 |
| 464 // Quitting the parent should cascade-quit the child. | 464 // Quitting the parent should cascade-quit the child. |
| 465 WaitForInstanceDestruction(); | 465 WaitForInstanceDestruction(); |
| 466 EXPECT_EQ(0u, instances()->GetNewInstanceCount()); | 466 EXPECT_EQ(0u, instances()->GetNewInstanceCount()); |
| 467 EXPECT_FALSE(instances()->HasInstanceForName(kTestParentName)); | 467 EXPECT_FALSE(instances()->HasInstanceForName(kTestParentName)); |
| 468 EXPECT_FALSE(instances()->HasInstanceForName(kTestAppName)); | 468 EXPECT_FALSE(instances()->HasInstanceForName(kTestAppName)); |
| 469 } | 469 } |
| 470 | 470 |
| 471 } // namespace shell | 471 } // namespace shell |
| 472 } // namespace mojo | 472 } // namespace mojo |
| OLD | NEW |