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

Side by Side Diff: mojo/shell/application_manager_unittest.cc

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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/application_manager/test.mojom ('k') | mojo/shell/child_process.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 "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/public/cpp/application/application_connection.h"
11 #include "mojo/public/cpp/application/application_delegate.h" 11 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/application_impl.h" 12 #include "mojo/public/cpp/application/application_impl.h"
13 #include "mojo/public/cpp/application/interface_factory.h" 13 #include "mojo/public/cpp/application/interface_factory.h"
14 #include "mojo/public/cpp/bindings/strong_binding.h" 14 #include "mojo/public/cpp/bindings/strong_binding.h"
15 #include "mojo/public/interfaces/application/service_provider.mojom.h" 15 #include "mojo/public/interfaces/application/service_provider.mojom.h"
16 #include "mojo/shell/application_manager/application_loader.h" 16 #include "mojo/shell/application_loader.h"
17 #include "mojo/shell/application_manager/application_manager.h" 17 #include "mojo/shell/application_manager.h"
18 #include "mojo/shell/application_manager/test.mojom.h" 18 #include "mojo/shell/test.mojom.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 namespace shell { 22 namespace shell {
23 namespace { 23 namespace {
24 24
25 const char kTestURLString[] = "test:testService"; 25 const char kTestURLString[] = "test:testService";
26 const char kTestAURLString[] = "test:TestA"; 26 const char kTestAURLString[] = "test:TestA";
27 const char kTestBURLString[] = "test:TestB"; 27 const char kTestBURLString[] = "test:TestB";
28 28
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 application_manager_->ConnectToApplication( 732 application_manager_->ConnectToApplication(
733 GURL("test:test"), GURL(), nullptr, nullptr, 733 GURL("test:test"), GURL(), nullptr, nullptr,
734 base::Bind(&QuitClosure, base::Unretained(&called))); 734 base::Bind(&QuitClosure, base::Unretained(&called)));
735 loop_.Run(); 735 loop_.Run();
736 EXPECT_TRUE(called); 736 EXPECT_TRUE(called);
737 } 737 }
738 738
739 } // namespace 739 } // namespace
740 } // namespace shell 740 } // namespace shell
741 } // namespace mojo 741 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/application_manager/test.mojom ('k') | mojo/shell/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698