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

Unified Diff: app/test_suite.h

Issue 5950003: Remove CrApplication dependency from base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: '' Created 10 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 | « app/animation_container_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/test_suite.h
diff --git a/app/test_suite.h b/app/test_suite.h
index 7e9076ce22034dccb225de718ac07cb847c24f14..1f05e13814039b200eabc70d839d051cf6dac76c 100644
--- a/app/test_suite.h
+++ b/app/test_suite.h
@@ -13,6 +13,7 @@
#include "base/path_service.h"
#if defined(OS_MACOSX)
#include "base/mac_util.h"
+#include "base/test/mock_chrome_application_mac.h"
#endif
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/test/test_suite.h"
@@ -25,6 +26,11 @@ class AppTestSuite : public base::TestSuite {
protected:
virtual void Initialize() {
+#if defined(OS_MACOSX)
+ // Some of the app unit tests try to open windows.
+ mock_cr_app::RegisterMockCrApp();
+#endif
+
base::mac::ScopedNSAutoreleasePool autorelease_pool;
TestSuite::Initialize();
« no previous file with comments | « app/animation_container_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698