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

Unified Diff: components/ntp_snippets/remote/json_request_unittest.cc

Issue 2686063003: [remote suggestions] Attach the fetch time to RemoteSnippets, ContentSnippets and SnippetArticle (Closed)
Patch Set: rebase Created 3 years, 10 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/ntp_snippets/remote/json_request_unittest.cc
diff --git a/components/ntp_snippets/remote/json_request_unittest.cc b/components/ntp_snippets/remote/json_request_unittest.cc
index f49a938a548fd58b382b35be07cb94ebe8ff1f47..912042f6e16ed7dc9655039903416417e88b4058 100644
--- a/components/ntp_snippets/remote/json_request_unittest.cc
+++ b/components/ntp_snippets/remote/json_request_unittest.cc
@@ -66,7 +66,7 @@ class JsonRequestTest : public testing::Test {
{ntp_snippets::kArticleSuggestionsFeature.name}),
pref_service_(base::MakeUnique<TestingPrefServiceSimple>()),
mock_task_runner_(new base::TestMockTimeTaskRunner()),
- tick_clock_(mock_task_runner_->GetMockTickClock()),
+ clock_(mock_task_runner_->GetMockClock()),
request_context_getter_(
new net::TestURLRequestContextGetter(mock_task_runner_.get())) {
translate::LanguageModel::RegisterProfilePrefs(pref_service_->registry());
@@ -88,7 +88,7 @@ class JsonRequestTest : public testing::Test {
JsonRequest::Builder CreateMinimalBuilder() {
JsonRequest::Builder builder;
builder.SetUrl(GURL("http://valid-url.test"))
- .SetTickClock(tick_clock_.get())
+ .SetClock(clock_.get())
.SetUrlRequestContextGetter(request_context_getter_.get());
return builder;
}
@@ -97,7 +97,7 @@ class JsonRequestTest : public testing::Test {
variations::testing::VariationParamsManager params_manager_;
std::unique_ptr<TestingPrefServiceSimple> pref_service_;
scoped_refptr<base::TestMockTimeTaskRunner> mock_task_runner_;
- std::unique_ptr<base::TickClock> tick_clock_;
+ std::unique_ptr<base::Clock> clock_;
scoped_refptr<net::TestURLRequestContextGetter> request_context_getter_;
net::TestURLFetcherFactory fetcher_factory_;
« no previous file with comments | « components/ntp_snippets/remote/json_request.cc ('k') | components/ntp_snippets/remote/proto/ntp_snippets.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698