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

Unified Diff: ash/common/test/test_new_window_client.h

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Rebase to ToT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/BUILD.gn ('k') | ash/common/test/test_new_window_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_new_window_client.h
diff --git a/ash/mus/new_window_delegate_mus.h b/ash/common/test/test_new_window_client.h
similarity index 51%
rename from ash/mus/new_window_delegate_mus.h
rename to ash/common/test/test_new_window_client.h
index 57dfb0223cefeb7520ae5cf5fb78465bac9ae736..1fd5e582272e811cc00416893cc45796fc93a119 100644
--- a/ash/mus/new_window_delegate_mus.h
+++ b/ash/common/test/test_new_window_client.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_MUS_NEW_WINDOW_DELEGATE_MUS_H_
-#define ASH_MUS_NEW_WINDOW_DELEGATE_MUS_H_
+#ifndef ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
+#define ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
-#include "ash/common/new_window_delegate.h"
-#include "base/macros.h"
+#include "ash/public/interfaces/new_window.mojom.h"
namespace ash {
-namespace mus {
-class NewWindowDelegateMus : public NewWindowDelegate {
+// A mojom::NewWindowClient which doesn't try to access a remote mojo component
+// for testing purpose.
+class TestNewWindowClient : public mojom::NewWindowClient {
public:
- NewWindowDelegateMus();
- ~NewWindowDelegateMus() override;
+ TestNewWindowClient();
+ ~TestNewWindowClient() override;
- // NewWindowDelegate:
+ // NewWindowClient:
void NewTab() override;
void NewWindow(bool incognito) override;
void OpenFileManager() override;
@@ -28,10 +28,9 @@ class NewWindowDelegateMus : public NewWindowDelegate {
void OpenFeedbackPage() override;
private:
- DISALLOW_COPY_AND_ASSIGN(NewWindowDelegateMus);
+ DISALLOW_COPY_AND_ASSIGN(TestNewWindowClient);
};
-} // namespace mus
} // namespace ash
-#endif // ASH_MUS_NEW_WINDOW_DELEGATE_MUS_H_
+#endif // ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
« no previous file with comments | « ash/common/test/BUILD.gn ('k') | ash/common/test/test_new_window_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698