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

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

Issue 2517203005: Enable mash_unittests on CrOS Ozone trybot. (Closed)
Patch Set: Created 4 years 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 | « no previous file | ash/mus/window_manager_unittest.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 "mash/quick_launch/public/interfaces/constants.mojom.h" 8 #include "mash/quick_launch/public/interfaces/constants.mojom.h"
9 #include "services/service_manager/public/cpp/service_test.h" 9 #include "services/service_manager/public/cpp/service_test.h"
10 #include "services/ui/public/interfaces/constants.mojom.h" 10 #include "services/ui/public/interfaces/constants.mojom.h"
(...skipping 18 matching lines...) Expand all
29 ServiceTest::SetUp(); 29 ServiceTest::SetUp();
30 } 30 }
31 31
32 DISALLOW_COPY_AND_ASSIGN(AppLaunchTest); 32 DISALLOW_COPY_AND_ASSIGN(AppLaunchTest);
33 }; 33 };
34 34
35 // Fails when the Ash material design shelf is enabled by default 35 // Fails when the Ash material design shelf is enabled by default
36 // (ash::MaterialDesignController::IsShelfMaterial()). See 36 // (ash::MaterialDesignController::IsShelfMaterial()). See
37 // crbug.com/660194 and crbug.com/642879. 37 // crbug.com/660194 and crbug.com/642879.
38 // TODO(rockot): Reenable this test. 38 // TODO(rockot): Reenable this test.
39 #if defined(USE_OZONE) 39 TEST_F(AppLaunchTest, DISABLED_TestQuickLaunch) {
40 #define MAYBE_TestQuickLaunch TestQuickLaunch
41 #else
42 #define MAYBE_TestQuickLaunch DISABLED_TestQuickLaunch
43 #endif // defined(USE_OZONE)
44 TEST_F(AppLaunchTest, MAYBE_TestQuickLaunch) {
45 connector()->Connect("ash"); 40 connector()->Connect("ash");
46 connector()->Connect(mash::quick_launch::mojom::kServiceName); 41 connector()->Connect(mash::quick_launch::mojom::kServiceName);
47 42
48 ui::mojom::WindowServerTestPtr test_interface; 43 ui::mojom::WindowServerTestPtr test_interface;
49 connector()->ConnectToInterface(ui::mojom::kServiceName, &test_interface); 44 connector()->ConnectToInterface(ui::mojom::kServiceName, &test_interface);
50 45
51 base::RunLoop run_loop; 46 base::RunLoop run_loop;
52 bool success = false; 47 bool success = false;
53 test_interface->EnsureClientHasDrawnWindow( 48 test_interface->EnsureClientHasDrawnWindow(
54 mash::quick_launch::mojom::kServiceName, 49 mash::quick_launch::mojom::kServiceName,
55 base::Bind(&RunCallback, &success, run_loop.QuitClosure())); 50 base::Bind(&RunCallback, &success, run_loop.QuitClosure()));
56 run_loop.Run(); 51 run_loop.Run();
57 EXPECT_TRUE(success); 52 EXPECT_TRUE(success);
58 } 53 }
59 54
60 } // namespace mus 55 } // namespace mus
61 } // namespace ash 56 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/mus/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698