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

Unified Diff: chrome/browser/sync/glue/typed_url_model_associator_unittest.cc

Issue 10689157: Switch to TimeDelta interfaces for TestTimeouts in sync code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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/sync/glue/typed_url_model_associator_unittest.cc
diff --git a/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc b/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc
index fe377fc70eea2110d8d47981eed5001203c8bd98..85f04b1a66a4cc16815b1e549dc78c1fc52273ae 100644
--- a/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc
+++ b/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc
@@ -76,8 +76,7 @@ class TestTypedUrlModelAssociator : public TypedUrlModelAssociator {
// Let the main thread know that we've been started up, and block until
// they've called Abort().
startup_->Signal();
- EXPECT_TRUE(aborted_->TimedWait(base::TimeDelta::FromMilliseconds(
- TestTimeouts::action_timeout_ms())));
+ EXPECT_TRUE(aborted_->TimedWait(TestTimeouts::action_timeout()));
return TypedUrlModelAssociator::IsAbortPending();
}
private:
@@ -437,13 +436,11 @@ TEST_F(SyncTypedUrlModelAssociatorTest, TestAbort) {
&CreateModelAssociator, &startup, &aborted, &done, &associator);
BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, callback);
// Wait for the model associator to get created and start assocation.
- ASSERT_TRUE(startup.TimedWait(base::TimeDelta::FromMilliseconds(
- TestTimeouts::action_timeout_ms())));
+ ASSERT_TRUE(startup.TimedWait(TestTimeouts::action_timeout()));
// Abort the model assocation - this should be callable from any thread.
associator->AbortAssociation();
// Tell the remote thread to continue.
aborted.Signal();
// Block until CreateModelAssociator() exits.
- ASSERT_TRUE(done.TimedWait(base::TimeDelta::FromMilliseconds(
- TestTimeouts::action_timeout_ms())));
+ ASSERT_TRUE(done.TimedWait(TestTimeouts::action_timeout()));
}

Powered by Google App Engine
This is Rietveld 408576698