summaryrefslogtreecommitdiffstats
path: root/sync/notifier/chrome_invalidation_client_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/notifier/chrome_invalidation_client_unittest.cc')
-rw-r--r--sync/notifier/chrome_invalidation_client_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/sync/notifier/chrome_invalidation_client_unittest.cc b/sync/notifier/chrome_invalidation_client_unittest.cc
index 1cc9bc5..a7c8f8af 100644
--- a/sync/notifier/chrome_invalidation_client_unittest.cc
+++ b/sync/notifier/chrome_invalidation_client_unittest.cc
@@ -140,8 +140,8 @@ class FakeListener : public ChromeInvalidationClient::Listener {
}
std::string GetPayload(const ObjectId& id) const {
- ObjectIdPayloadMap::const_iterator it = payloads_.find(id);
- return (it == payloads_.end()) ? "" : it->second;
+ ObjectIdStateMap::const_iterator it = states_.find(id);
+ return (it == states_.end()) ? "" : it->second.payload;
}
// NO_NOTIFICATION_ERROR is the enabled state.
@@ -151,11 +151,11 @@ class FakeListener : public ChromeInvalidationClient::Listener {
// ChromeInvalidationClient::Listener implementation.
- virtual void OnInvalidate(const ObjectIdPayloadMap& id_payloads) OVERRIDE {
- for (ObjectIdPayloadMap::const_iterator it = id_payloads.begin();
- it != id_payloads.end(); ++it) {
+ virtual void OnInvalidate(const ObjectIdStateMap& id_state_map) OVERRIDE {
+ for (ObjectIdStateMap::const_iterator it = id_state_map.begin();
+ it != id_state_map.end(); ++it) {
++invalidation_counts_[it->first];
- payloads_[it->first] = it->second;
+ states_[it->first] = it->second;
}
}
@@ -170,7 +170,7 @@ class FakeListener : public ChromeInvalidationClient::Listener {
private:
typedef std::map<ObjectId, int, ObjectIdLessThan> ObjectIdCountMap;
ObjectIdCountMap invalidation_counts_;
- ObjectIdPayloadMap payloads_;
+ ObjectIdStateMap states_;
NotificationsDisabledReason reason_;
};