diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 23:02:21 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 23:02:21 +0000 |
commit | a5f9f373450f82d5a0a107473da6cd5f232d4ec9 (patch) | |
tree | 27ced074b40f2e39d664b1bd070de45718b4d4c8 /chrome/browser/download | |
parent | bf3fbd6347853955d7f3df8603e19b81db13a9f7 (diff) | |
download | chromium_src-a5f9f373450f82d5a0a107473da6cd5f232d4ec9.zip chromium_src-a5f9f373450f82d5a0a107473da6cd5f232d4ec9.tar.gz chromium_src-a5f9f373450f82d5a0a107473da6cd5f232d4ec9.tar.bz2 |
GTTF: Use a fresh TestingBrowserProcess for each test, part #4
For a detailed description see part #1, http://codereview.chromium.org/6478005/
BUG=61062
TEST=unit_tests, possibly more
Review URL: http://codereview.chromium.org/7465041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_manager_unittest.cc | 3 | ||||
-rw-r--r-- | chrome/browser/download/download_safe_browsing_client_unittest.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc index 25ad24e..18dabab 100644 --- a/chrome/browser/download/download_manager_unittest.cc +++ b/chrome/browser/download/download_manager_unittest.cc @@ -28,6 +28,7 @@ #include "chrome/browser/prefs/pref_service.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/testing_profile.h" +#include "chrome/test/testing_browser_process_test.h" #include "content/browser/browser_thread.h" #include "grit/generated_resources.h" #include "testing/gmock/include/gmock/gmock.h" @@ -36,7 +37,7 @@ #include "ui/base/l10n/l10n_util.h" #include "ui/base/text/bytes_formatting.h" -class DownloadManagerTest : public testing::Test { +class DownloadManagerTest : public TestingBrowserProcessTest { public: static const char* kTestData; static const size_t kTestDataLen; diff --git a/chrome/browser/download/download_safe_browsing_client_unittest.cc b/chrome/browser/download/download_safe_browsing_client_unittest.cc index 05bc36e..87a600a 100644 --- a/chrome/browser/download/download_safe_browsing_client_unittest.cc +++ b/chrome/browser/download/download_safe_browsing_client_unittest.cc @@ -5,6 +5,7 @@ #include "base/message_loop.h" #include "chrome/browser/download/download_safe_browsing_client.h" #include "chrome/browser/safe_browsing/safe_browsing_service.h" +#include "chrome/test/testing_browser_process_test.h" #include "content/browser/browser_thread.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" @@ -31,7 +32,7 @@ class MockSafeBrowsingService : public SafeBrowsingService { } // namespace -class DownloadSBClientTest : public testing::Test { +class DownloadSBClientTest : public TestingBrowserProcessTest { public: DownloadSBClientTest() : ui_thread_(BrowserThread::UI, &loop_) { |