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

Unified Diff: sync/internal_api/public/base/invalidation_state.h

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 4 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: sync/internal_api/public/base/invalidation_state.h
diff --git a/sync/internal_api/public/base/invalidation_state.h b/sync/internal_api/public/base/invalidation_state.h
index 8b790197a88d68f449adcd6bffa8ad3bc8ffe20f..8c811afda6684e8ccea314011ce5cb5fb7f46898 100644
--- a/sync/internal_api/public/base/invalidation_state.h
+++ b/sync/internal_api/public/base/invalidation_state.h
@@ -7,17 +7,37 @@
#include <string>
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class DictionaryValue;
+class Value;
+} // namespace
+
namespace syncer {
// Opaque class that represents an ack handle.
// TODO(dcheng): This is just a refactoring change, so the class is empty for
// the moment. It will be filled once we start implementing 'reminders'.
class AckHandle {
+ public:
+ bool Equals(const AckHandle& other) const;
+
+ scoped_ptr<base::Value> ToValue() const;
+
+ bool ResetFromValue(const base::Value& value);
};
struct InvalidationState {
std::string payload;
AckHandle ack_handle;
+
+ bool Equals(const InvalidationState& other) const;
+
+ // Caller owns the returned DictionaryValue.
+ scoped_ptr<base::DictionaryValue> ToValue() const;
+
+ bool ResetFromValue(const base::DictionaryValue& value);
};
} // namespace syncer
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | sync/internal_api/public/base/invalidation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698