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

Side by Side Diff: mojo/services/window_manager/window_manager_apptest.cc

Issue 1057603003: Simplify mojo_shell since it's now only used for Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update scripts Created 5 years, 8 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/services/window_manager/BUILD.gn ('k') | mojo/shell/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 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/bind.h" 5 #include "base/bind.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "mojo/application/application_test_base_chromium.h"
7 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_delegate.h"
8 #include "mojo/public/cpp/application/application_impl.h" 9 #include "mojo/public/cpp/application/application_impl.h"
9 #include "mojo/public/cpp/application/application_test_base.h"
10 #include "mojo/public/cpp/application/service_provider_impl.h" 10 #include "mojo/public/cpp/application/service_provider_impl.h"
11 #include "mojo/public/cpp/system/macros.h" 11 #include "mojo/public/cpp/system/macros.h"
12 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h" 12 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h"
13 #include "third_party/mojo_services/src/view_manager/public/cpp/view_manager_cli ent_factory.h" 13 #include "third_party/mojo_services/src/view_manager/public/cpp/view_manager_cli ent_factory.h"
14 #include "third_party/mojo_services/src/view_manager/public/cpp/view_manager_del egate.h" 14 #include "third_party/mojo_services/src/view_manager/public/cpp/view_manager_del egate.h"
15 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_ manager.mojom.h" 15 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_ manager.mojom.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace { 18 namespace {
19 19
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 class WindowManagerApplicationTest : public test::ApplicationTestBase { 78 class WindowManagerApplicationTest : public test::ApplicationTestBase {
79 public: 79 public:
80 WindowManagerApplicationTest() {} 80 WindowManagerApplicationTest() {}
81 ~WindowManagerApplicationTest() override {} 81 ~WindowManagerApplicationTest() override {}
82 82
83 protected: 83 protected:
84 // ApplicationTestBase: 84 // ApplicationTestBase:
85 void SetUp() override { 85 void SetUp() override {
86 ApplicationTestBase::SetUp(); 86 ApplicationTestBase::SetUp();
87 application_impl()->ConnectToService("mojo:window_manager", 87 application_impl()->ConnectToService("mojo:test_window_manager",
88 &window_manager_); 88 &window_manager_);
89 } 89 }
90 ApplicationDelegate* GetApplicationDelegate() override { 90 ApplicationDelegate* GetApplicationDelegate() override {
91 return &test_application_; 91 return &test_application_;
92 } 92 }
93 93
94 void EmbedApplicationWithURL(const std::string& url) { 94 void EmbedApplicationWithURL(const std::string& url) {
95 window_manager_->Embed(url, nullptr, nullptr); 95 window_manager_->Embed(url, nullptr, nullptr);
96 96
97 base::RunLoop run_loop; 97 base::RunLoop run_loop;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // This call fails if the WindowManager does not have a FocusController. 203 // This call fails if the WindowManager does not have a FocusController.
204 EXPECT_EQ(0u, capture_view_id); 204 EXPECT_EQ(0u, capture_view_id);
205 EXPECT_EQ(0u, focused_view_id); 205 EXPECT_EQ(0u, focused_view_id);
206 EXPECT_EQ(0u, active_view_id); 206 EXPECT_EQ(0u, active_view_id);
207 } 207 }
208 208
209 // TODO(msw): Write tests exercising other WindowManager functionality. 209 // TODO(msw): Write tests exercising other WindowManager functionality.
210 210
211 } // namespace 211 } // namespace
212 } // namespace mojo 212 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/window_manager/BUILD.gn ('k') | mojo/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698