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

Unified Diff: ui/views/test/platform_test_helper.h

Issue 2752303002: views/mus: Install a mus-friend ContextFactory for tests. (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « ui/views/mus/views_mus_test_suite.cc ('k') | ui/views/test/platform_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/platform_test_helper.h
diff --git a/ui/views/test/platform_test_helper.h b/ui/views/test/platform_test_helper.h
index fb3ab103da6bd0d6cf054fac5c8449950336b183..64423afc1ef32af8953a95928b7d9638f016a35f 100644
--- a/ui/views/test/platform_test_helper.h
+++ b/ui/views/test/platform_test_helper.h
@@ -10,6 +10,11 @@
#include "base/callback_forward.h"
#include "base/macros.h"
+namespace ui {
+class ContextFactory;
+class ContextFactoryPrivate;
+}
+
namespace views {
class ViewsTestHelper;
@@ -19,7 +24,7 @@ class PlatformTestHelper {
public:
using Factory = base::Callback<std::unique_ptr<PlatformTestHelper>(void)>;
PlatformTestHelper() {}
- virtual ~PlatformTestHelper() {}
+ virtual ~PlatformTestHelper();
static void set_factory(const Factory& factory);
static std::unique_ptr<PlatformTestHelper> Create();
@@ -34,6 +39,10 @@ class PlatformTestHelper {
// Simulate an OS-level destruction of the native window held by |widget|.
virtual void SimulateNativeDestroy(Widget* widget);
+ virtual void InitializeContextFactory(
+ ui::ContextFactory** factory,
+ ui::ContextFactoryPrivate** factory_private);
+
private:
DISALLOW_COPY_AND_ASSIGN(PlatformTestHelper);
};
« no previous file with comments | « ui/views/mus/views_mus_test_suite.cc ('k') | ui/views/test/platform_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698