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

Unified Diff: ash/mus/app_launch_unittest.cc

Issue 2509853002: Convert //mash to define service names in mojom (Closed)
Patch Set: . Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/DEPS ('k') | ash/mus/app_list_presenter_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/app_launch_unittest.cc
diff --git a/ash/mus/app_launch_unittest.cc b/ash/mus/app_launch_unittest.cc
index 631eaf0b9d4355ba7969dece691c2b5db264b1f0..50df2d4897fb3a972fdca7f8b0fd08d593573e3b 100644
--- a/ash/mus/app_launch_unittest.cc
+++ b/ash/mus/app_launch_unittest.cc
@@ -5,6 +5,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/run_loop.h"
+#include "mash/quick_launch/public/interfaces/constants.mojom.h"
#include "services/service_manager/public/cpp/service_test.h"
#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/window_server_test.mojom.h"
@@ -42,7 +43,7 @@ class AppLaunchTest : public service_manager::test::ServiceTest {
#endif // defined(USE_OZONE)
TEST_F(AppLaunchTest, MAYBE_TestQuickLaunch) {
connector()->Connect("ash");
- connector()->Connect("quick_launch");
+ connector()->Connect(mash::quick_launch::mojom::kServiceName);
ui::mojom::WindowServerTestPtr test_interface;
connector()->ConnectToInterface(ui::mojom::kServiceName, &test_interface);
@@ -50,7 +51,7 @@ TEST_F(AppLaunchTest, MAYBE_TestQuickLaunch) {
base::RunLoop run_loop;
bool success = false;
test_interface->EnsureClientHasDrawnWindow(
- "quick_launch",
+ mash::quick_launch::mojom::kServiceName,
base::Bind(&RunCallback, &success, run_loop.QuitClosure()));
run_loop.Run();
EXPECT_TRUE(success);
« no previous file with comments | « ash/mus/DEPS ('k') | ash/mus/app_list_presenter_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698