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