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

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

Issue 1982963002: Reland: mus: Add views_mus_interactive_ui_tests target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix size_t to int warning on Windows 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 | « ui/views/test/platform_test_helper.h ('k') | ui/views/test/scoped_views_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/platform_test_helper.cc
diff --git a/ui/views/test/platform_test_helper.cc b/ui/views/test/platform_test_helper.cc
index a415ff9ae860f1f5bca9635d2da8ac8a971a4507..1d309ee25931b11829d15dacd8a0ca940a59056c 100644
--- a/ui/views/test/platform_test_helper.cc
+++ b/ui/views/test/platform_test_helper.cc
@@ -17,13 +17,12 @@ class DefaultPlatformTestHelper : public PlatformTestHelper {
~DefaultPlatformTestHelper() override {}
- bool IsMus() const override { return false; }
-
private:
DISALLOW_COPY_AND_ASSIGN(DefaultPlatformTestHelper);
};
PlatformTestHelper::Factory test_helper_factory;
+bool is_mus = false;
} // namespace
@@ -39,4 +38,14 @@ std::unique_ptr<PlatformTestHelper> PlatformTestHelper::Create() {
: base::WrapUnique(new DefaultPlatformTestHelper);
}
+// static
+void PlatformTestHelper::SetIsMus() {
+ is_mus = true;
+}
+
+// static
+bool PlatformTestHelper::IsMus() {
+ return is_mus;
+}
+
} // namespace views
« no previous file with comments | « ui/views/test/platform_test_helper.h ('k') | ui/views/test/scoped_views_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698