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

Unified Diff: chrome/test/base/view_event_test_base.cc

Issue 785233008: MacViews: Use views::TestViewsDelegate in ViewEventTestBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: needs set_use_desktop_native_widgets Created 6 years 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 | « chrome/test/base/view_event_test_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_base.cc
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
index 17cfb0a2c670d7f400916d7f81818acdfb173a89..89f34deaa0002b3d40a1b44c7c16b86a1074a7d0 100644
--- a/chrome/test/base/view_event_test_base.cc
+++ b/chrome/test/base/view_event_test_base.cc
@@ -82,6 +82,8 @@ void ViewEventTestBase::SetUp() {
bool enable_pixel_output = false;
ui::ContextFactory* context_factory =
ui::InitializeContextFactoryForTests(enable_pixel_output);
+ views_delegate_.set_context_factory(context_factory);
+ views_delegate_.set_use_desktop_native_widgets(true);
platform_part_.reset(ViewEventTestPlatformPart::Create(context_factory));
gfx::NativeWindow context = platform_part_->GetContext();
« no previous file with comments | « chrome/test/base/view_event_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698