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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "mojo/public/cpp/application/application_connection.h" | 10 #include "mojo/public/cpp/application/application_connection.h" |
11 #include "mojo/public/cpp/application/application_delegate.h" | 11 #include "mojo/public/cpp/application/application_delegate.h" |
12 #include "mojo/public/cpp/application/application_impl.h" | 12 #include "mojo/public/cpp/application/application_impl.h" |
13 #include "mojo/public/cpp/application/interface_factory.h" | 13 #include "mojo/public/cpp/application/interface_factory.h" |
14 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
15 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 15 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
16 #include "mojo/shell/application_manager/application_loader.h" | 16 #include "mojo/shell/application_loader.h" |
17 #include "mojo/shell/application_manager/application_manager.h" | 17 #include "mojo/shell/application_manager.h" |
18 #include "mojo/shell/application_manager/test.mojom.h" | 18 #include "mojo/shell/test.mojom.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace shell { | 22 namespace shell { |
23 namespace { | 23 namespace { |
24 | 24 |
25 const char kTestURLString[] = "test:testService"; | 25 const char kTestURLString[] = "test:testService"; |
26 const char kTestAURLString[] = "test:TestA"; | 26 const char kTestAURLString[] = "test:TestA"; |
27 const char kTestBURLString[] = "test:TestB"; | 27 const char kTestBURLString[] = "test:TestB"; |
28 | 28 |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 application_manager_->ConnectToApplication( | 732 application_manager_->ConnectToApplication( |
733 GURL("test:test"), GURL(), nullptr, nullptr, | 733 GURL("test:test"), GURL(), nullptr, nullptr, |
734 base::Bind(&QuitClosure, base::Unretained(&called))); | 734 base::Bind(&QuitClosure, base::Unretained(&called))); |
735 loop_.Run(); | 735 loop_.Run(); |
736 EXPECT_TRUE(called); | 736 EXPECT_TRUE(called); |
737 } | 737 } |
738 | 738 |
739 } // namespace | 739 } // namespace |
740 } // namespace shell | 740 } // namespace shell |
741 } // namespace mojo | 741 } // namespace mojo |
OLD | NEW |