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

Unified Diff: components/ntp_snippets/ntp_snippet.h

Issue 1878993002: [NTP Snippets] Clean up NTPSnippetsServiceTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/ntp_snippet.h
diff --git a/components/ntp_snippets/ntp_snippet.h b/components/ntp_snippets/ntp_snippet.h
index ead67b85c8e0cecef43c63880fb7f5fdddd2b4ea..d3a40606b7600a7a673b35cd218bda7759055012 100644
--- a/components/ntp_snippets/ntp_snippet.h
+++ b/components/ntp_snippets/ntp_snippet.h
@@ -79,6 +79,10 @@ class NTPSnippet {
expiry_date_ = expiry_date;
}
+ // Public for testing.
+ static base::Time TimeFromJsonString(const std::string& timestamp_str);
+ static std::string TimeToJsonString(const base::Time& time);
+
private:
const GURL url_;
std::string site_title_;
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippet.cc » ('j') | components/ntp_snippets/ntp_snippets_service_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698