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

Side by Side Diff: ui/views/test/platform_test_helper.h

Issue 1984403002: Revert of Reland: mus: Add views_mus_interactive_ui_tests target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | ui/views/test/platform_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 5 #ifndef UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
6 #define UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 6 #define UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 class PlatformTestHelper { 15 class PlatformTestHelper {
16 public: 16 public:
17 using Factory = base::Callback<std::unique_ptr<PlatformTestHelper>(void)>; 17 using Factory = base::Callback<std::unique_ptr<PlatformTestHelper>(void)>;
18 PlatformTestHelper() {} 18 PlatformTestHelper() {}
19 virtual ~PlatformTestHelper() {} 19 virtual ~PlatformTestHelper() {}
20 20
21 static void set_factory(const Factory& factory); 21 static void set_factory(const Factory& factory);
22 static std::unique_ptr<PlatformTestHelper> Create(); 22 static std::unique_ptr<PlatformTestHelper> Create();
23 23
24 // Whether we are running under the mus environment. Methods are static so 24 virtual bool IsMus() const = 0;
25 // that they can be called before Create().
26 static void SetIsMus();
27 static bool IsMus();
28 25
29 private: 26 private:
30 DISALLOW_COPY_AND_ASSIGN(PlatformTestHelper); 27 DISALLOW_COPY_AND_ASSIGN(PlatformTestHelper);
31 }; 28 };
32 29
33 } // namespace views 30 } // namespace views
34 31
35 #endif // UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 32 #endif // UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | ui/views/test/platform_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698