| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SCOPED_VIEWS_TEST_HELPER_H_ | 5 #ifndef UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_ |
| 6 #define UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_ | 6 #define UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 std::unique_ptr<TestViewsDelegate> views_delegate); | 32 std::unique_ptr<TestViewsDelegate> views_delegate); |
| 33 | 33 |
| 34 ~ScopedViewsTestHelper(); | 34 ~ScopedViewsTestHelper(); |
| 35 | 35 |
| 36 // Returns the context for creating new windows. In Aura builds, this will be | 36 // Returns the context for creating new windows. In Aura builds, this will be |
| 37 // the RootWindow. Everywhere else, null. | 37 // the RootWindow. Everywhere else, null. |
| 38 gfx::NativeWindow GetContext(); | 38 gfx::NativeWindow GetContext(); |
| 39 | 39 |
| 40 TestViewsDelegate* views_delegate() { return views_delegate_.get(); }; | 40 TestViewsDelegate* views_delegate() { return views_delegate_.get(); }; |
| 41 | 41 |
| 42 bool IsMus() const; | |
| 43 | |
| 44 private: | 42 private: |
| 45 std::unique_ptr<TestViewsDelegate> views_delegate_; | 43 std::unique_ptr<TestViewsDelegate> views_delegate_; |
| 46 std::unique_ptr<ViewsTestHelper> test_helper_; | 44 std::unique_ptr<ViewsTestHelper> test_helper_; |
| 47 std::unique_ptr<PlatformTestHelper> platform_test_helper_; | 45 std::unique_ptr<PlatformTestHelper> platform_test_helper_; |
| 48 | 46 |
| 49 DISALLOW_COPY_AND_ASSIGN(ScopedViewsTestHelper); | 47 DISALLOW_COPY_AND_ASSIGN(ScopedViewsTestHelper); |
| 50 }; | 48 }; |
| 51 | 49 |
| 52 } // namespace views | 50 } // namespace views |
| 53 | 51 |
| 54 #endif // UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_ | 52 #endif // UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_ |
| OLD | NEW |