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

Side by Side Diff: ash/mus/app_launch_unittest.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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 | « ash/mus/accessibility_delegate_mus.cc ('k') | ash/mus/app_list_presenter_mus.cc » ('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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "services/shell/public/cpp/service_test.h" 8 #include "services/service_manager/public/cpp/service_test.h"
9 #include "services/ui/public/interfaces/window_server_test.mojom.h" 9 #include "services/ui/public/interfaces/window_server_test.mojom.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace mus { 12 namespace mus {
13 13
14 void RunCallback(bool* success, const base::Closure& callback, bool result) { 14 void RunCallback(bool* success, const base::Closure& callback, bool result) {
15 *success = result; 15 *success = result;
16 callback.Run(); 16 callback.Run();
17 } 17 }
18 18
(...skipping 22 matching lines...) Expand all
41 bool success = false; 41 bool success = false;
42 test_interface->EnsureClientHasDrawnWindow( 42 test_interface->EnsureClientHasDrawnWindow(
43 "service:quick_launch", 43 "service:quick_launch",
44 base::Bind(&RunCallback, &success, run_loop.QuitClosure())); 44 base::Bind(&RunCallback, &success, run_loop.QuitClosure()));
45 run_loop.Run(); 45 run_loop.Run();
46 EXPECT_TRUE(success); 46 EXPECT_TRUE(success);
47 } 47 }
48 48
49 } // namespace mus 49 } // namespace mus
50 } // namespace ash 50 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/accessibility_delegate_mus.cc ('k') | ash/mus/app_list_presenter_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698