diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 20:26:29 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 20:26:29 +0000 |
commit | f66c110c118bf7e5c386d49a5f4e83d948441b45 (patch) | |
tree | d052b77548d3c11450a7b886809aaf11c8f46a55 /chrome/test | |
parent | d8b258c5e97adbc8e73dd73b319d1cdacb4c15d7 (diff) | |
download | chromium_src-f66c110c118bf7e5c386d49a5f4e83d948441b45.zip chromium_src-f66c110c118bf7e5c386d49a5f4e83d948441b45.tar.gz chromium_src-f66c110c118bf7e5c386d49a5f4e83d948441b45.tar.bz2 |
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
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/unit/chrome_test_suite.h | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |