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

Side by Side Diff: chrome/test/views_chrome_test_suite.cc

Issue 2364173002: Add app_list_presenterr pointer in app_list_presenter_delegate_mus to use dismiss function (Closed)
Patch Set: remove unnecessary includes Created 4 years, 2 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 | « chrome/test/views_chrome_test_suite.h ('k') | ui/views/mus/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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ui/views/mus/views_mus_test_suite.h" 5 #include "views_chrome_test_suite.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/threading/simple_thread.h" 13 #include "base/threading/simple_thread.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "services/shell/background/background_shell.h" 15 #include "services/shell/background/background_shell.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 base::Thread thread_; 146 base::Thread thread_;
147 std::unique_ptr<shell::BackgroundShell> background_shell_; 147 std::unique_ptr<shell::BackgroundShell> background_shell_;
148 std::unique_ptr<shell::ServiceContext> shell_connection_; 148 std::unique_ptr<shell::ServiceContext> shell_connection_;
149 std::unique_ptr<DefaultService> service_; 149 std::unique_ptr<DefaultService> service_;
150 std::unique_ptr<shell::Connector> shell_connector_; 150 std::unique_ptr<shell::Connector> shell_connector_;
151 shell::Identity shell_identity_; 151 shell::Identity shell_identity_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(ShellConnection); 153 DISALLOW_COPY_AND_ASSIGN(ShellConnection);
154 }; 154 };
155 155
156 ViewsMusTestSuite::ViewsMusTestSuite(int argc, char** argv) 156 ViewsChromeTestSuite::ViewsChromeTestSuite(int argc, char** argv)
157 : ViewsTestSuite(argc, argv) {} 157 : ViewsTestSuite(argc, argv) {}
158 158
159 ViewsMusTestSuite::~ViewsMusTestSuite() {} 159 ViewsChromeTestSuite::~ViewsChromeTestSuite() {}
160 160
161 void ViewsMusTestSuite::Initialize() { 161 void ViewsChromeTestSuite::Initialize() {
162 PlatformTestHelper::SetIsMus(); 162 PlatformTestHelper::SetIsMus();
163 // Let other mojo apps know that we're running in tests. Do this with a 163 // Let other mojo apps know that we're running in tests. Do this with a
164 // command line flag to avoid making blocking calls to other processes for 164 // command line flag to avoid making blocking calls to other processes for
165 // setup for tests (e.g. to unlock the screen in the window manager). 165 // setup for tests (e.g. to unlock the screen in the window manager).
166 EnsureCommandLineSwitch(ui::switches::kUseTestConfig); 166 EnsureCommandLineSwitch(ui::switches::kUseTestConfig);
167 167
168 ViewsTestSuite::Initialize(); 168 ViewsTestSuite::Initialize();
169 shell_connections_.reset(new ShellConnection); 169 shell_connections_.reset(new ShellConnection);
170 } 170 }
171 171
172 void ViewsMusTestSuite::Shutdown() { 172 void ViewsChromeTestSuite::Shutdown() {
173 shell_connections_.reset(); 173 shell_connections_.reset();
174 ViewsTestSuite::Shutdown(); 174 ViewsTestSuite::Shutdown();
175 } 175 }
176 176
177 } // namespace views 177 } // namespace views
OLDNEW
« no previous file with comments | « chrome/test/views_chrome_test_suite.h ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698