summaryrefslogtreecommitdiff
path: root/key_value_store.h
diff options
context:
space:
mode:
authorPrathmesh Prabhu <pprabhu@chromium.org>2013-11-22 17:31:17 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-27 01:46:16 +0000
commit3903c70d58d17ee9f27ddb71d4c87f6ed5580d48 (patch)
treee30a88337f36770d1776f04f8c945562c1100493 /key_value_store.h
parent99ec94d3ef0049e5013e590017e8714b5fc9c682 (diff)
downloadshill-3903c70d58d17ee9f27ddb71d4c87f6ed5580d48.tar.gz
Add Equal() method to KeyValueStore.
Two KeyValueStore objects are deemed equal if all maps stored therein are identical (same keys, same values). BUG=chromium:322763 TEST=Run platform2 unitttests. Change-Id: I2cccbdca2582f12202a04976f9be7c2bdf37f431 Reviewed-on: https://chromium-review.googlesource.com/177938 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Diffstat (limited to 'key_value_store.h')
-rw-r--r--key_value_store.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/key_value_store.h b/key_value_store.h
index 74f11500..5c1248a5 100644
--- a/key_value_store.h
+++ b/key_value_store.h
@@ -32,6 +32,7 @@ class KeyValueStore {
void Clear();
void CopyFrom(const KeyValueStore &b);
+ bool Equals(const KeyValueStore &other) const;
bool IsEmpty();
bool ContainsBool(const std::string &name) const;