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

Side by Side Diff: mojo/package_manager/content_handler_unittest.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/mojo_public_gles2_for_loadable_module.gypi ('k') | mojo/platform_handle/BUILD.gn » ('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 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 "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 "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "mojo/application/public/cpp/application_connection.h" 12 #include "mojo/application/public/cpp/application_connection.h"
13 #include "mojo/application/public/cpp/application_delegate.h" 13 #include "mojo/application/public/cpp/application_delegate.h"
14 #include "mojo/application/public/cpp/application_impl.h" 14 #include "mojo/application/public/cpp/application_impl.h"
15 #include "mojo/application/public/cpp/interface_factory.h" 15 #include "mojo/application/public/cpp/interface_factory.h"
16 #include "mojo/application/public/interfaces/content_handler.mojom.h" 16 #include "mojo/application/public/interfaces/content_handler.mojom.h"
17 #include "mojo/application/public/interfaces/service_provider.mojom.h" 17 #include "mojo/application/public/interfaces/service_provider.mojom.h"
18 #include "mojo/package_manager/package_manager_impl.h" 18 #include "mojo/package_manager/package_manager_impl.h"
19 #include "mojo/public/cpp/bindings/strong_binding.h"
19 #include "mojo/shell/application_loader.h" 20 #include "mojo/shell/application_loader.h"
20 #include "mojo/shell/application_manager.h" 21 #include "mojo/shell/application_manager.h"
21 #include "mojo/shell/connect_util.h" 22 #include "mojo/shell/connect_util.h"
22 #include "mojo/shell/fetcher.h" 23 #include "mojo/shell/fetcher.h"
23 #include "mojo/shell/test_package_manager.h" 24 #include "mojo/shell/test_package_manager.h"
24 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
26 26
27 namespace mojo { 27 namespace mojo {
28 namespace package_manager { 28 namespace package_manager {
29 namespace test { 29 namespace test {
30 namespace { 30 namespace {
31 31
32 const char kTestMimeType[] = "test/mime-type"; 32 const char kTestMimeType[] = "test/mime-type";
33 33
34 class TestFetcher : public shell::Fetcher { 34 class TestFetcher : public shell::Fetcher {
35 public: 35 public:
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 params->SetTargetURL(GURL("test:test")); 312 params->SetTargetURL(GURL("test:test"));
313 params->set_connect_callback( 313 params->set_connect_callback(
314 [&content_handler_id](uint32_t t) { content_handler_id = t; }); 314 [&content_handler_id](uint32_t t) { content_handler_id = t; });
315 application_manager_->ConnectToApplication(params.Pass()); 315 application_manager_->ConnectToApplication(params.Pass());
316 EXPECT_EQ(0u, content_handler_id); 316 EXPECT_EQ(0u, content_handler_id);
317 } 317 }
318 318
319 } // namespace test 319 } // namespace test
320 } // namespace package_manager 320 } // namespace package_manager
321 } // namespace mojo 321 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/mojo_public_gles2_for_loadable_module.gypi ('k') | mojo/platform_handle/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698