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

Unified Diff: mash/wm/app_launch_unittest.cc

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/accelerator_registrar_unittest.cc ('k') | mash/wm/background_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/app_launch_unittest.cc
diff --git a/mash/wm/app_launch_unittest.cc b/mash/wm/app_launch_unittest.cc
deleted file mode 100644
index 337ab6f4efd3c6274d532e61fcd73ad2421dab2a..0000000000000000000000000000000000000000
--- a/mash/wm/app_launch_unittest.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/bind.h"
-#include "base/command_line.h"
-#include "base/run_loop.h"
-#include "components/mus/public/interfaces/window_server_test.mojom.h"
-#include "services/shell/public/cpp/shell_test.h"
-
-namespace mash {
-namespace wm {
-
-void RunCallback(bool* success, const base::Closure& callback, bool result) {
- *success = result;
- callback.Run();
-}
-
-class AppLaunchTest : public shell::test::ShellTest {
- public:
- AppLaunchTest() : ShellTest("exe:mash_unittests") {}
- ~AppLaunchTest() override {}
-
- private:
- void SetUp() override {
- base::CommandLine::ForCurrentProcess()->AppendSwitch("use-test-config");
- ShellTest::SetUp();
- }
-
- DISALLOW_COPY_AND_ASSIGN(AppLaunchTest);
-};
-
-TEST_F(AppLaunchTest, TestQuickLaunch) {
- connector()->Connect("mojo:desktop_wm");
- connector()->Connect("mojo:quick_launch");
-
- mus::mojom::WindowServerTestPtr test_interface;
- connector()->ConnectToInterface("mojo:mus", &test_interface);
-
- base::RunLoop run_loop;
- bool success = false;
- test_interface->EnsureClientHasDrawnWindow(
- "mojo:quick_launch",
- base::Bind(&RunCallback, &success, run_loop.QuitClosure()));
- run_loop.Run();
- EXPECT_TRUE(success);
-}
-
-} // namespace wm
-} // namespace mash
« no previous file with comments | « mash/wm/accelerator_registrar_unittest.cc ('k') | mash/wm/background_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698