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

Unified Diff: components/mus/public/cpp/tests/window_server_test_base.h

Issue 1771393002: Convert mus apptests to shelltests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: components/mus/public/cpp/tests/window_server_test_base.h
diff --git a/components/mus/public/cpp/tests/window_server_test_base.h b/components/mus/public/cpp/tests/window_server_test_base.h
index 149fe26e2d771a46ec31489712eb5d86b8ff78b5..7e045891de4ed0d78cec7307a9540ae124a61870 100644
--- a/components/mus/public/cpp/tests/window_server_test_base.h
+++ b/components/mus/public/cpp/tests/window_server_test_base.h
@@ -7,22 +7,21 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "components/mus/public/cpp/tests/window_server_shelltest_base.h"
#include "components/mus/public/cpp/window_manager_delegate.h"
#include "components/mus/public/cpp/window_tree_delegate.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "components/mus/public/interfaces/window_tree_host.mojom.h"
-#include "mojo/shell/public/cpp/application_test_base.h"
#include "mojo/shell/public/cpp/interface_factory.h"
namespace mus {
-// WindowServerTestBase is a base class for use with app tests that use
+// WindowServerTestBase is a base class for use with shell tests that use
// WindowServer. SetUp() connects to the WindowServer and blocks until OnEmbed()
// has been invoked. window_manager() can be used to access the WindowServer
// established as part of SetUp().
class WindowServerTestBase
- : public mojo::test::ApplicationTestBase,
- public mojo::ShellClient,
+ : public WindowServerShellTestBase,
public WindowTreeDelegate,
public WindowManagerDelegate,
public mojo::InterfaceFactory<mojom::WindowTreeClient> {
@@ -62,10 +61,7 @@ class WindowServerTestBase
// testing::Test:
void SetUp() override;
- // test::ApplicationTestBase:
- mojo::ShellClient* GetShellClient() override;
-
- // mojo::ShellClient:
+ // WindowServerShellTestBase:
bool AcceptConnection(mojo::Connection* connection) override;
// WindowTreeDelegate:

Powered by Google App Engine
This is Rietveld 408576698