OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "mojo/public/cpp/application/application_test_base.h" | 5 #include "mojo/public/cpp/application/application_test_base.h" |
6 | 6 |
| 7 #include "mojo/application/public/interfaces/application.mojom.h" |
7 #include "mojo/public/cpp/application/application_impl.h" | 8 #include "mojo/public/cpp/application/application_impl.h" |
8 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
9 #include "mojo/public/cpp/environment/environment.h" | 10 #include "mojo/public/cpp/environment/environment.h" |
10 #include "mojo/public/cpp/system/message_pipe.h" | 11 #include "mojo/public/cpp/system/message_pipe.h" |
11 #include "mojo/public/interfaces/application/application.mojom.h" | |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace test { | 14 namespace test { |
15 | 15 |
16 namespace { | 16 namespace { |
17 // Share the application command-line arguments with multiple application tests. | 17 // Share the application command-line arguments with multiple application tests. |
18 Array<String> g_args; | 18 Array<String> g_args; |
19 | 19 |
20 // Share the application URL with multiple application tests. | 20 // Share the application URL with multiple application tests. |
21 String g_url; | 21 String g_url; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 if (ShouldCreateDefaultRunLoop()) | 156 if (ShouldCreateDefaultRunLoop()) |
157 Environment::DestroyDefaultRunLoop(); | 157 Environment::DestroyDefaultRunLoop(); |
158 } | 158 } |
159 | 159 |
160 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { | 160 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { |
161 return true; | 161 return true; |
162 } | 162 } |
163 | 163 |
164 } // namespace test | 164 } // namespace test |
165 } // namespace mojo | 165 } // namespace mojo |
OLD | NEW |