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

Unified Diff: google_apis/gcm/engine/gcm_store_impl.h

Issue 884783003: [GCM] Fixing the initialization of last checkin/fetch time if they are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding unit tests Created 5 years, 11 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
« no previous file with comments | « no previous file | google_apis/gcm/engine/gcm_store_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/gcm_store_impl.h
diff --git a/google_apis/gcm/engine/gcm_store_impl.h b/google_apis/gcm/engine/gcm_store_impl.h
index 292c2f27ae7d1706144ba300f07e18bc5c264c7f..636b4becea51e33286a180f96c410688915a4e89 100644
--- a/google_apis/gcm/engine/gcm_store_impl.h
+++ b/google_apis/gcm/engine/gcm_store_impl.h
@@ -95,6 +95,11 @@ class GCM_EXPORT GCMStoreImpl : public GCMStore {
void SetLastTokenFetchTime(const base::Time& time,
const UpdateCallback& callback) override;
+ // Injects a value to database. Only to be used for testing.
+ void SetValueForTesting(const std::string& key,
+ const std::string& value,
+ const UpdateCallback& callback);
+
private:
typedef std::map<std::string, int> AppIdToMessageCountMap;
« no previous file with comments | « no previous file | google_apis/gcm/engine/gcm_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698