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

Unified Diff: chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h

Issue 10933127: contacts: Don't save deleted contacts to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 2 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/chromeos/gdata/gdata_contacts_service_stub.h
diff --git a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
index b57cc6c47326931dbe02c99146d0d029ffba954d..91acf923b51636ae184c61f470fb3611a62ede90 100644
--- a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
+++ b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
@@ -25,7 +25,13 @@ class GDataContactsServiceStub : public GDataContactsServiceInterface {
virtual ~GDataContactsServiceStub();
int num_download_requests() const { return num_download_requests_; }
- void reset_stats() { num_download_requests_ = 0; }
+ int num_download_requests_with_wrong_timestamps() const {
+ return num_download_requests_with_wrong_timestamps_;
+ }
+ void reset_stats() {
+ num_download_requests_ = 0;
+ num_download_requests_with_wrong_timestamps_ = 0;
+ }
void set_download_should_succeed(bool succeed) {
download_should_succeed_ = succeed;
}
@@ -45,6 +51,10 @@ class GDataContactsServiceStub : public GDataContactsServiceInterface {
// How many times has DownloadContacts() been called?
int num_download_requests_;
+ // How many times has DownloadContacts() been called with a |min_update_time|
+ // parameter that doesn't match |expected_min_update_time_|?
+ int num_download_requests_with_wrong_timestamps_;
+
// Should calls to DownloadContacts() succeed?
bool download_should_succeed_;

Powered by Google App Engine
This is Rietveld 408576698