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/shell/application_manager.h" | 5 #include "mojo/shell/application_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "mojo/public/cpp/bindings/strong_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_binding.h" |
16 #include "mojo/shell/application_loader.h" | 16 #include "mojo/shell/application_loader.h" |
17 #include "mojo/shell/connect_util.h" | 17 #include "mojo/shell/connect_util.h" |
18 #include "mojo/shell/public/cpp/interface_factory.h" | 18 #include "mojo/shell/public/cpp/interface_factory.h" |
19 #include "mojo/shell/public/cpp/shell_client.h" | 19 #include "mojo/shell/public/cpp/shell_client.h" |
20 #include "mojo/shell/public/cpp/shell_connection.h" | 20 #include "mojo/shell/public/cpp/shell_connection.h" |
21 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" | 21 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" |
22 #include "mojo/shell/test.mojom.h" | 22 #include "mojo/shell/tests/test.mojom.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace mojo { | 25 namespace mojo { |
26 namespace shell { | 26 namespace shell { |
27 namespace test { | 27 namespace test { |
28 | 28 |
29 const char kTestURLString[] = "test:testService"; | 29 const char kTestURLString[] = "test:testService"; |
30 const char kTestAURLString[] = "test:TestA"; | 30 const char kTestAURLString[] = "test:TestA"; |
31 const char kTestBURLString[] = "test:TestB"; | 31 const char kTestBURLString[] = "test:TestB"; |
32 | 32 |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 | 611 |
612 // A different identity because the domain is different. | 612 // A different identity because the domain is different. |
613 ConnectToInterface(application_manager_.get(), CreateShellIdentity(), | 613 ConnectToInterface(application_manager_.get(), CreateShellIdentity(), |
614 GURL("mojo:bar"), &test_service); | 614 GURL("mojo:bar"), &test_service); |
615 EXPECT_EQ(3, test_loader_->num_loads()); | 615 EXPECT_EQ(3, test_loader_->num_loads()); |
616 } | 616 } |
617 | 617 |
618 } // namespace test | 618 } // namespace test |
619 } // namespace shell | 619 } // namespace shell |
620 } // namespace mojo | 620 } // namespace mojo |
OLD | NEW |