OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/shell/capability_filter_test.h" | 5 #include "mojo/shell/capability_filter_test.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "mojo/application/public/cpp/application_connection.h" | |
13 #include "mojo/application/public/cpp/application_impl.h" | |
14 #include "mojo/application/public/cpp/connect.h" | |
15 #include "mojo/application/public/cpp/interface_factory.h" | |
16 #include "mojo/application/public/cpp/service_provider_impl.h" | |
17 #include "mojo/common/weak_binding_set.h" | 12 #include "mojo/common/weak_binding_set.h" |
18 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
19 #include "mojo/shell/application_loader.h" | 14 #include "mojo/shell/application_loader.h" |
20 #include "mojo/shell/package_manager.h" | 15 #include "mojo/shell/package_manager.h" |
| 16 #include "mojo/shell/public/cpp/application_connection.h" |
| 17 #include "mojo/shell/public/cpp/application_impl.h" |
| 18 #include "mojo/shell/public/cpp/connect.h" |
| 19 #include "mojo/shell/public/cpp/interface_factory.h" |
| 20 #include "mojo/shell/public/cpp/service_provider_impl.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace shell { | 23 namespace shell { |
24 namespace test { | 24 namespace test { |
25 | 25 |
26 // Lives on the main thread of the test. | 26 // Lives on the main thread of the test. |
27 // Listens for services exposed/blocked and for application connections being | 27 // Listens for services exposed/blocked and for application connections being |
28 // closed. Quits |loop| when all expectations are met. | 28 // closed. Quits |loop| when all expectations are met. |
29 class ConnectionValidator : public ApplicationLoader, | 29 class ConnectionValidator : public ApplicationLoader, |
30 public ApplicationDelegate, | 30 public ApplicationDelegate, |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 void CapabilityFilterTest::RunTest() { | 320 void CapabilityFilterTest::RunTest() { |
321 loop()->Run(); | 321 loop()->Run(); |
322 EXPECT_TRUE(validator_->expectations_met()); | 322 EXPECT_TRUE(validator_->expectations_met()); |
323 if (!validator_->expectations_met()) | 323 if (!validator_->expectations_met()) |
324 validator_->PrintUnmetExpectations(); | 324 validator_->PrintUnmetExpectations(); |
325 } | 325 } |
326 | 326 |
327 } // namespace test | 327 } // namespace test |
328 } // namespace shell | 328 } // namespace shell |
329 } // namespace mojo | 329 } // namespace mojo |
OLD | NEW |