From f66c110c118bf7e5c386d49a5f4e83d948441b45 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Fri, 5 Dec 2008 20:26:29 +0000 Subject: fix chrome_paths to make some test dirs relative to base::DIR_SOURCE_ROOT rather than chrome::DIR_APP. DIR_APP is in different relative locations on different platforms while DIR_SOURCE_ROOT is the same, so this allows us to share code and be correct on all platforms. Also, enable extensions_service_unittest for Mac and Linux and add an NSAutoreleasePool to ChromeTestSuite (which is now being used by run_all_unittests on Mac and Linux per my earlier checkin). Review URL: http://codereview.chromium.org/13177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6445 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/unit/chrome_test_suite.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/test') diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h index b2c192a..3ea6059 100644 --- a/chrome/test/unit/chrome_test_suite.h +++ b/chrome/test/unit/chrome_test_suite.h @@ -8,6 +8,7 @@ #include "base/stats_table.h" #include "base/file_util.h" #include "base/path_service.h" +#include "base/scoped_nsautorelease_pool.h" #include "base/test_suite.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" @@ -24,6 +25,8 @@ public: protected: virtual void Initialize() { + base::ScopedNSAutoreleasePool autorelease_pool; + TestSuite::Initialize(); chrome::RegisterPathProvider(); -- cgit v1.1