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/application/public/cpp/application_connection.h" |
11 #include "mojo/public/cpp/application/application_delegate.h" | 11 #include "mojo/application/public/cpp/application_delegate.h" |
12 #include "mojo/public/cpp/application/application_impl.h" | 12 #include "mojo/application/public/cpp/application_impl.h" |
13 #include "mojo/public/cpp/application/interface_factory.h" | 13 #include "mojo/application/public/cpp/interface_factory.h" |
| 14 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
14 #include "mojo/public/cpp/bindings/strong_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_binding.h" |
15 #include "mojo/public/interfaces/application/service_provider.mojom.h" | |
16 #include "mojo/shell/application_loader.h" | 16 #include "mojo/shell/application_loader.h" |
17 #include "mojo/shell/application_manager.h" | 17 #include "mojo/shell/application_manager.h" |
18 #include "mojo/shell/fetcher.h" | 18 #include "mojo/shell/fetcher.h" |
19 #include "mojo/shell/test.mojom.h" | 19 #include "mojo/shell/test.mojom.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace shell { | 23 namespace shell { |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 loop.Run(); | 815 loop.Run(); |
816 EXPECT_TRUE(called); | 816 EXPECT_TRUE(called); |
817 | 817 |
818 ASSERT_EQ(1, loader->num_loads()); | 818 ASSERT_EQ(1, loader->num_loads()); |
819 EXPECT_EQ(requestor_url, loader->last_requestor_url()); | 819 EXPECT_EQ(requestor_url, loader->last_requestor_url()); |
820 } | 820 } |
821 | 821 |
822 } // namespace | 822 } // namespace |
823 } // namespace shell | 823 } // namespace shell |
824 } // namespace mojo | 824 } // namespace mojo |
OLD | NEW |