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

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

Issue 10260033: Build fixes to get use_aura && !use_ash to build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « chrome/chrome_tests.gypi ('k') | content/content_tests.gypi » ('j') | 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
===================================================================
--- chrome/test/base/view_event_test_base.cc (revision 134705)
+++ chrome/test/base/view_event_test_base.cc (working copy)
@@ -15,8 +15,10 @@
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
+#if defined(USE_ASH)
+#include "ash/shell.h"
+#endif
#if defined(USE_AURA)
-#include "ash/shell.h"
#include "ui/aura/client/event_client.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
@@ -81,7 +83,7 @@
void ViewEventTestBase::SetUp() {
ui::CompositorTestSupport::Initialize();
-#if defined(USE_AURA)
+#if defined(USE_ASH)
ash::Shell::CreateInstance(NULL);
// The shell runs with a locked screen in tests, so we must clear the event
// client so it doesn't interfere with event propagation.
@@ -101,8 +103,10 @@
#endif
window_ = NULL;
}
+#if defined(USE_ASH)
+ ash::Shell::DeleteInstance();
+#endif
#if defined(USE_AURA)
- ash::Shell::DeleteInstance();
aura::Env::DeleteInstance();
#endif
ui::CompositorTestSupport::Terminate();
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698