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/application/public/cpp/application_test_base.h" | 5 #include "mojo/application/public/cpp/application_test_base.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "mojo/application/public/cpp/application_impl.h" | 9 #include "mojo/application/public/cpp/application_impl.h" |
10 #include "mojo/application/public/interfaces/application.mojom.h" | 10 #include "mojo/application/public/interfaces/application.mojom.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Application implementation. | 42 // Application implementation. |
43 void Initialize(ShellPtr shell, const mojo::String& url) override { | 43 void Initialize(ShellPtr shell, const mojo::String& url) override { |
44 g_url = url; | 44 g_url = url; |
45 g_application_request = binding_.Unbind(); | 45 g_application_request = binding_.Unbind(); |
46 g_shell = shell.Pass(); | 46 g_shell = shell.Pass(); |
47 } | 47 } |
48 | 48 |
49 void AcceptConnection(const String& requestor_url, | 49 void AcceptConnection(const String& requestor_url, |
50 InterfaceRequest<ServiceProvider> services, | 50 InterfaceRequest<ServiceProvider> services, |
51 ServiceProviderPtr exposed_services, | 51 ServiceProviderPtr exposed_services, |
| 52 Array<String> allowed_interfaces, |
52 const String& url) override { | 53 const String& url) override { |
53 MOJO_CHECK(false); | 54 MOJO_CHECK(false); |
54 } | 55 } |
55 | 56 |
56 void OnQuitRequested(const Callback<void(bool)>& callback) override { | 57 void OnQuitRequested(const Callback<void(bool)>& callback) override { |
57 MOJO_CHECK(false); | 58 MOJO_CHECK(false); |
58 } | 59 } |
59 | 60 |
60 Binding<Application> binding_; | 61 Binding<Application> binding_; |
61 }; | 62 }; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 Environment::DestroyDefaultRunLoop(); | 143 Environment::DestroyDefaultRunLoop(); |
143 } | 144 } |
144 | 145 |
145 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { | 146 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { |
146 return true; | 147 return true; |
147 } | 148 } |
148 | 149 |
149 | 150 |
150 } // namespace test | 151 } // namespace test |
151 } // namespace mojo | 152 } // namespace mojo |
OLD | NEW |