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

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

Issue 2488393003: Changes views_aura_mus_unittests to create DesktopNativeWidgetAura (Closed)
Patch Set: remove this and fix mac Created 4 years, 1 month 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/test/test_views.cc ('k') | ui/views/test/views_test_base.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_TEST_BASE_H_ 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 6 #define UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 void TearDown() override; 41 void TearDown() override;
42 42
43 void RunPendingMessages(); 43 void RunPendingMessages();
44 44
45 // Creates a widget of |type| with any platform specific data for use in 45 // Creates a widget of |type| with any platform specific data for use in
46 // cross-platform tests. 46 // cross-platform tests.
47 Widget::InitParams CreateParams(Widget::InitParams::Type type); 47 Widget::InitParams CreateParams(Widget::InitParams::Type type);
48 48
49 bool HasCompositingManager() const; 49 bool HasCompositingManager() const;
50 50
51 // Simulate an OS-level destruction of the native window held by |widget|.
52 void SimulateNativeDestroy(Widget* widget);
53
51 protected: 54 protected:
52 TestViewsDelegate* views_delegate() const { 55 TestViewsDelegate* views_delegate() const {
53 return test_helper_->views_delegate(); 56 return test_helper_->views_delegate();
54 } 57 }
55 58
56 void set_views_delegate(std::unique_ptr<TestViewsDelegate> views_delegate) { 59 void set_views_delegate(std::unique_ptr<TestViewsDelegate> views_delegate) {
57 DCHECK(!setup_called_); 60 DCHECK(!setup_called_);
58 views_delegate_for_setup_.swap(views_delegate); 61 views_delegate_for_setup_.swap(views_delegate);
59 } 62 }
60 63
(...skipping 14 matching lines...) Expand all
75 #if defined(OS_WIN) 78 #if defined(OS_WIN)
76 ui::ScopedOleInitializer ole_initializer_; 79 ui::ScopedOleInitializer ole_initializer_;
77 #endif 80 #endif
78 81
79 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); 82 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase);
80 }; 83 };
81 84
82 } // namespace views 85 } // namespace views
83 86
84 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ 87 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_views.cc ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698