Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2343)

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service_unittest.cc

Issue 2887843002: Replace BrowserThread::FILE in safe browsing with task scheduler. (Closed)
Patch Set: Switch SingleThread->SequencedTaskRunner per Gab's request. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
index b2a48898d586b41c29300212195005b06d68ab6d..ddf6a8d07c7a88b11edc6adc493c071b5d96ee15 100644
--- a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
@@ -70,8 +70,6 @@ class MockClientSideDetectionService : public ClientSideDetectionService {
class ClientSideDetectionServiceTest : public testing::Test {
protected:
void SetUp() override {
- file_thread_.reset(new content::TestBrowserThread(BrowserThread::FILE,
- &msg_loop_));
factory_.reset(new net::FakeURLFetcherFactory(NULL));
browser_thread_.reset(new content::TestBrowserThread(BrowserThread::UI,
&msg_loop_));
@@ -80,7 +78,6 @@ class ClientSideDetectionServiceTest : public testing::Test {
void TearDown() override {
base::RunLoop().RunUntilIdle();
csd_service_.reset();
- file_thread_.reset();
browser_thread_.reset();
}
@@ -252,7 +249,6 @@ class ClientSideDetectionServiceTest : public testing::Test {
}
std::unique_ptr<content::TestBrowserThread> browser_thread_;
- std::unique_ptr<content::TestBrowserThread> file_thread_;
gab 2017/06/06 14:34:53 I'm surprised this test doesn't need to add a Scop
Sigurður Ásgeirsson 2017/06/06 14:45:01 Yeah, looks like - I guess this'd start flaking if
std::unique_ptr<base::FieldTrialList> field_trials_;
GURL phishing_url_;

Powered by Google App Engine
This is Rietveld 408576698