diff options
author | tommycli <tommycli@chromium.org> | 2015-12-02 14:11:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-02 22:12:12 +0000 |
commit | fc939726c283e34112d9bc845a39460410fe9cd9 (patch) | |
tree | 1b19ca53b35344e75e54585984cb2dfbb46bca28 /components/update_client | |
parent | 62fbdbc1e9f7caaec0fb2248e95e150c65ffa812 (diff) | |
download | chromium_src-fc939726c283e34112d9bc845a39460410fe9cd9.zip chromium_src-fc939726c283e34112d9bc845a39460410fe9cd9.tar.gz chromium_src-fc939726c283e34112d9bc845a39460410fe9cd9.tar.bz2 |
Tests: Simplify SequencedWorkerPoolOwner, call Shutdown on destructor.
Also ports remaining tests using raw SWPs to use SWPOwner.
BUG=450228
Review URL: https://codereview.chromium.org/1417353006
Cr-Commit-Position: refs/heads/master@{#362805}
Diffstat (limited to 'components/update_client')
-rw-r--r-- | components/update_client/update_client_unittest.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/components/update_client/update_client_unittest.cc b/components/update_client/update_client_unittest.cc index c5bccb0..d8ad6df 100644 --- a/components/update_client/update_client_unittest.cc +++ b/components/update_client/update_client_unittest.cc @@ -137,7 +137,6 @@ class UpdateClientTest : public testing::Test { protected: void RunThreads(); - void StopWorkerPool(); // Returns the full path to a test file. static base::FilePath TestFilePath(const char* file); @@ -178,10 +177,6 @@ void UpdateClientTest::RunThreads() { runloop_.Run(); } -void UpdateClientTest::StopWorkerPool() { - worker_pool_->pool()->Shutdown(); -} - base::FilePath UpdateClientTest::TestFilePath(const char* file) { base::FilePath path; PathService::Get(base::DIR_SOURCE_ROOT, &path); @@ -287,8 +282,6 @@ TEST_F(UpdateClientTest, OneCrxNoUpdate) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the scenario where two CRXs are checked for updates. On CRX has @@ -470,8 +463,6 @@ TEST_F(UpdateClientTest, TwoCrxUpdateNoUpdate) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the update check for two CRXs scenario. Both CRXs have updates. @@ -708,8 +699,6 @@ TEST_F(UpdateClientTest, TwoCrxUpdate) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the scenario where there is a download timeout for the first @@ -946,8 +935,6 @@ TEST_F(UpdateClientTest, TwoCrxUpdateDownloadTimeout) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the differential update scenario for one CRX. @@ -1212,8 +1199,6 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdate) { } update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the update scenario for one CRX where the CRX installer returns @@ -1406,8 +1391,6 @@ TEST_F(UpdateClientTest, OneCrxInstallError) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the fallback from differential to full update scenario for one CRX. @@ -1691,8 +1674,6 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdateFailsFullUpdateSucceeds) { } update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the queuing of update checks. In this scenario, two update checks are @@ -1797,8 +1778,6 @@ TEST_F(UpdateClientTest, OneCrxNoUpdateQueuedCall) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests the install of one CRX. @@ -1970,8 +1949,6 @@ TEST_F(UpdateClientTest, OneCrxInstall) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Tests that overlapping installs of the same CRX result in an error. @@ -2084,8 +2061,6 @@ TEST_F(UpdateClientTest, ConcurrentInstallSameCRX) { RunThreads(); update_client->RemoveObserver(&observer); - - StopWorkerPool(); } // Make sure that we don't get any crashes when trying to update an empty list @@ -2144,8 +2119,6 @@ TEST_F(UpdateClientTest, EmptyIdList) { empty_id_list, base::Bind(&DataCallbackFake::Callback), base::Bind(&CompletionCallbackFake::Callback, runloop.QuitClosure())); runloop.Run(); - - StopWorkerPool(); } } // namespace update_client |