diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 17:32:32 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 17:32:32 +0000 |
commit | 85f633544904e9a2e1b47ad3a713ad764c81eaf2 (patch) | |
tree | 78ad55aeacd41a6ad480a9f3a6af28040feace19 /chrome/test/unit | |
parent | 53bb5675486a7a3ddb0f29482fc0217f7452f833 (diff) | |
download | chromium_src-85f633544904e9a2e1b47ad3a713ad764c81eaf2.zip chromium_src-85f633544904e9a2e1b47ad3a713ad764c81eaf2.tar.gz chromium_src-85f633544904e9a2e1b47ad3a713ad764c81eaf2.tar.bz2 |
Revert 55400 - Cleanup in base. This moves the implementation (and a bunch of header file
dependencies) from the multiprocess test and the test_suite headers to .cc
files. Moves multiprocess_test to the test directory, and all of this stuff to
the existing base_test_support project. I also used the base namespace.
Previously other projects included this functionality just by #include because
it was all inline, so I had to add dependencies on base_test_support in a few
places.
Moves and renames the command line switch this was using to base_switches. Move
the base switch for process type to chrome switches.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3026055
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/3035062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/unit')
-rw-r--r-- | chrome/test/unit/chrome_test_suite.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h index 1cdd90f..b788879 100644 --- a/chrome/test/unit/chrome_test_suite.h +++ b/chrome/test/unit/chrome_test_suite.h @@ -12,11 +12,9 @@ #include "app/app_paths.h" #include "app/resource_bundle.h" -#include "base/command_line.h" #include "base/stats_table.h" #include "base/file_util.h" #include "base/path_service.h" -#include "base/process_util.h" #include "base/ref_counted.h" #include "base/scoped_nsautorelease_pool.h" #include "base/test/test_suite.h" @@ -30,7 +28,6 @@ #include "chrome/test/testing_browser_process.h" #include "net/base/mock_host_resolver.h" #include "net/base/net_util.h" -#include "testing/gtest/include/gtest/gtest.h" #if defined(OS_MACOSX) #include "base/mac_util.h" @@ -84,10 +81,10 @@ class WarningHostResolverProc : public net::HostResolverProc { } }; -class ChromeTestSuite : public base::TestSuite { +class ChromeTestSuite : public TestSuite { public: ChromeTestSuite(int argc, char** argv) - : base::TestSuite(argc, argv), + : TestSuite(argc, argv), stats_table_(NULL), created_user_data_dir_(false) { } @@ -97,7 +94,7 @@ class ChromeTestSuite : public base::TestSuite { virtual void Initialize() { base::ScopedNSAutoreleasePool autorelease_pool; - base::TestSuite::Initialize(); + TestSuite::Initialize(); chrome::RegisterChromeSchemes(); host_resolver_proc_ = new WarningHostResolverProc(); @@ -175,7 +172,7 @@ class ChromeTestSuite : public base::TestSuite { file_util::Delete(user_data_dir, true); file_util::Delete(user_data_dir.DirName(), false); } - base::TestSuite::Shutdown(); + TestSuite::Shutdown(); } void SetBrowserDirectory(const FilePath& browser_dir) { |