Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: mojo/shell/public/cpp/lib/application_test_base.cc

Issue 1684783002: Rename ServiceProvider to InterfaceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/public/cpp/lazy_interface_ptr.h ('k') | mojo/shell/public/cpp/lib/connection_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <utility> 5 #include <utility>
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/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "mojo/public/cpp/environment/environment.h" 10 #include "mojo/public/cpp/environment/environment.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const mojo::String& url, 46 const mojo::String& url,
47 uint32_t id) override { 47 uint32_t id) override {
48 g_url = url; 48 g_url = url;
49 g_id = id; 49 g_id = id;
50 g_shell_client_request = binding_.Unbind(); 50 g_shell_client_request = binding_.Unbind();
51 g_shell = std::move(shell); 51 g_shell = std::move(shell);
52 } 52 }
53 53
54 void AcceptConnection(const String& requestor_url, 54 void AcceptConnection(const String& requestor_url,
55 uint32_t requestor_id, 55 uint32_t requestor_id,
56 InterfaceRequest<ServiceProvider> services, 56 InterfaceRequest<InterfaceProvider> local_interfaces,
57 ServiceProviderPtr exposed_services, 57 InterfaceProviderPtr remote_interfaces,
58 Array<String> allowed_interfaces, 58 Array<String> allowed_interfaces,
59 const String& url) override { 59 const String& url) override {
60 MOJO_CHECK(false); 60 MOJO_CHECK(false);
61 } 61 }
62 62
63 void OnQuitRequested(const Callback<void(bool)>& callback) override { 63 void OnQuitRequested(const Callback<void(bool)>& callback) override {
64 MOJO_CHECK(false); 64 MOJO_CHECK(false);
65 } 65 }
66 66
67 Binding<ShellClient> binding_; 67 Binding<ShellClient> binding_;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 if (ShouldCreateDefaultRunLoop()) 164 if (ShouldCreateDefaultRunLoop())
165 Environment::DestroyDefaultRunLoop(); 165 Environment::DestroyDefaultRunLoop();
166 } 166 }
167 167
168 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { 168 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() {
169 return true; 169 return true;
170 } 170 }
171 171
172 } // namespace test 172 } // namespace test
173 } // namespace mojo 173 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lazy_interface_ptr.h ('k') | mojo/shell/public/cpp/lib/connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698