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

Unified Diff: components/password_manager/core/browser/affiliation_service_unittest.cc

Issue 947563002: Add prefetch support to AffiliationBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'stale' accessor, cleaned up timelines for tests, extended/fixed some tests. Created 5 years, 9 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: components/password_manager/core/browser/affiliation_service_unittest.cc
diff --git a/components/password_manager/core/browser/affiliation_service_unittest.cc b/components/password_manager/core/browser/affiliation_service_unittest.cc
index 6774b955f1db24d6a1388ad4b9cc9b9ec8bea2f5..e1889f73c452d71ee2232d2eeb91691517c1f1a9 100644
--- a/components/password_manager/core/browser/affiliation_service_unittest.cc
+++ b/components/password_manager/core/browser/affiliation_service_unittest.cc
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/test/test_mock_time_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "components/password_manager/core/browser/fake_affiliation_api.h"
@@ -42,7 +43,7 @@ class AffiliationServiceTest : public testing::Test {
public:
AffiliationServiceTest()
: main_task_runner_(new base::TestSimpleTaskRunner),
- background_task_runner_(new base::TestSimpleTaskRunner),
+ background_task_runner_(new base::TestMockTimeTaskRunner),
main_task_runner_handle_(main_task_runner_) {}
~AffiliationServiceTest() override {}
@@ -56,7 +57,7 @@ class AffiliationServiceTest : public testing::Test {
return main_task_runner_.get();
}
- base::TestSimpleTaskRunner* background_task_runner() {
+ base::TestMockTimeTaskRunner* background_task_runner() {
return background_task_runner_.get();
}
@@ -88,7 +89,7 @@ class AffiliationServiceTest : public testing::Test {
ScopedFakeAffiliationAPI fake_affiliation_api_;
MockAffiliationConsumer mock_consumer_;
scoped_refptr<base::TestSimpleTaskRunner> main_task_runner_;
- scoped_refptr<base::TestSimpleTaskRunner> background_task_runner_;
+ scoped_refptr<base::TestMockTimeTaskRunner> background_task_runner_;
base::ThreadTaskRunnerHandle main_task_runner_handle_;
scoped_ptr<AffiliationService> service_;

Powered by Google App Engine
This is Rietveld 408576698