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

Side by Side Diff: mojo/shell/package_manager/content_handler_unittest.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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.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/path_service.h" 14 #include "base/path_service.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "mojo/public/cpp/bindings/strong_binding.h" 16 #include "mojo/public/cpp/bindings/strong_binding.h"
17 #include "mojo/shell/application_loader.h" 17 #include "mojo/shell/application_loader.h"
18 #include "mojo/shell/application_manager.h" 18 #include "mojo/shell/application_manager.h"
19 #include "mojo/shell/connect_util.h" 19 #include "mojo/shell/connect_util.h"
20 #include "mojo/shell/fetcher.h" 20 #include "mojo/shell/fetcher.h"
21 #include "mojo/shell/package_manager/package_manager_impl.h" 21 #include "mojo/shell/package_manager/package_manager_impl.h"
22 #include "mojo/shell/public/cpp/interface_factory.h" 22 #include "mojo/shell/public/cpp/interface_factory.h"
23 #include "mojo/shell/public/cpp/shell_client.h" 23 #include "mojo/shell/public/cpp/shell_client.h"
24 #include "mojo/shell/public/cpp/shell_connection.h" 24 #include "mojo/shell/public/cpp/shell_connection.h"
25 #include "mojo/shell/public/interfaces/content_handler.mojom.h" 25 #include "mojo/shell/public/interfaces/content_handler.mojom.h"
26 #include "mojo/shell/public/interfaces/service_provider.mojom.h" 26 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
27 #include "mojo/shell/test_package_manager.h" 27 #include "mojo/shell/test_package_manager.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 namespace mojo { 30 namespace mojo {
31 namespace shell { 31 namespace shell {
32 namespace test { 32 namespace test {
33 namespace { 33 namespace {
34 34
35 const char kTestMimeType[] = "test/mime-type"; 35 const char kTestMimeType[] = "test/mime-type";
36 36
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 params->SetTargetURL(GURL("test:test")); 319 params->SetTargetURL(GURL("test:test"));
320 params->set_connect_callback( 320 params->set_connect_callback(
321 [&content_handler_id](uint32_t, uint32_t t) { content_handler_id = t; }); 321 [&content_handler_id](uint32_t, uint32_t t) { content_handler_id = t; });
322 application_manager_->ConnectToApplication(std::move(params)); 322 application_manager_->ConnectToApplication(std::move(params));
323 EXPECT_EQ(0u, content_handler_id); 323 EXPECT_EQ(0u, content_handler_id);
324 } 324 }
325 325
326 } // namespace test 326 } // namespace test
327 } // namespace package_manager 327 } // namespace package_manager
328 } // namespace mojo 328 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/package_manager/content_handler_connection.cc ('k') | mojo/shell/package_manager/package_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698