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

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

Issue 1983473002: ApplicationConnection devolution, part 3.1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
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 "shell/application_manager/application_manager.h" 5 #include "shell/application_manager/application_manager.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 "mojo/public/cpp/application/application_connection.h" 14 #include "mojo/public/cpp/application/application_connection.h"
15 #include "mojo/public/cpp/application/application_delegate.h" 15 #include "mojo/public/cpp/application/application_delegate.h"
16 #include "mojo/public/cpp/application/application_impl.h" 16 #include "mojo/public/cpp/application/application_impl.h"
17 #include "mojo/public/cpp/application/connect.h" 17 #include "mojo/public/cpp/application/connect.h"
18 #include "mojo/public/cpp/bindings/strong_binding.h" 18 #include "mojo/public/cpp/bindings/strong_binding.h"
19 #include "mojo/public/interfaces/application/service_provider.mojom.h" 19 #include "mojo/public/interfaces/application/service_provider.mojom.h"
20 #include "shell/application_manager/application_loader.h" 20 #include "shell/application_manager/application_loader.h"
21 #include "shell/application_manager/test.mojom.h" 21 #include "shell/application_manager/test.mojom.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using mojo::Application; 24 using mojo::Application;
25 using mojo::ApplicationConnection;
26 using mojo::ApplicationDelegate; 25 using mojo::ApplicationDelegate;
27 using mojo::ApplicationImpl; 26 using mojo::ApplicationImpl;
28 using mojo::Callback; 27 using mojo::Callback;
29 using mojo::ConnectionContext; 28 using mojo::ConnectionContext;
30 using mojo::InterfaceRequest; 29 using mojo::InterfaceRequest;
31 using mojo::StrongBinding; 30 using mojo::StrongBinding;
32 31
33 namespace shell { 32 namespace shell {
34 namespace { 33 namespace {
35 34
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 bool called = false; 783 bool called = false;
785 application_manager_->ConnectToApplication( 784 application_manager_->ConnectToApplication(
786 GURL("test:test"), GURL(), nullptr, 785 GURL("test:test"), GURL(), nullptr,
787 base::Bind(&QuitClosure, base::Unretained(&called))); 786 base::Bind(&QuitClosure, base::Unretained(&called)));
788 loop_.Run(); 787 loop_.Run();
789 EXPECT_TRUE(called); 788 EXPECT_TRUE(called);
790 } 789 }
791 790
792 } // namespace 791 } // namespace
793 } // namespace shell 792 } // namespace shell
OLDNEW
« no previous file with comments | « shell/android/native_viewport_application_loader.cc ('k') | ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698