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

Unified Diff: sync/syncable/model_type_payload_map_unittest.cc

Issue 10197004: [Sync] Convert SyncSessionSnapshot to a copy-able class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 8 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 | « sync/syncable/model_type_payload_map.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type_payload_map_unittest.cc
diff --git a/sync/syncable/model_type_payload_map_unittest.cc b/sync/syncable/model_type_payload_map_unittest.cc
index 27e36a122fd88248fce12456b54d064e9ca5e21c..212c2b75f984ee686a1e533ce2479b6a5ff827f1 100644
--- a/sync/syncable/model_type_payload_map_unittest.cc
+++ b/sync/syncable/model_type_payload_map_unittest.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/base64.h"
#include "base/memory/scoped_ptr.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
@@ -29,12 +30,14 @@ TEST_F(ModelTypePayloadMapTest, TypePayloadMapToSet) {
TEST_F(ModelTypePayloadMapTest, TypePayloadMapToValue) {
ModelTypePayloadMap payloads;
+ std::string encoded;
payloads[BOOKMARKS] = "bookmarkpayload";
+ base::Base64Encode(payloads[BOOKMARKS], &encoded);
payloads[APPS] = "";
scoped_ptr<DictionaryValue> value(ModelTypePayloadMapToValue(payloads));
EXPECT_EQ(2u, value->size());
- ExpectDictStringValue("bookmarkpayload", *value, "Bookmarks");
+ ExpectDictStringValue(encoded, *value, "Bookmarks");
ExpectDictStringValue("", *value, "Apps");
EXPECT_FALSE(value->HasKey("Preferences"));
}
« no previous file with comments | « sync/syncable/model_type_payload_map.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698