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

Unified Diff: chrome/browser/sync/syncable/model_type_payload_map_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/sync/syncable/model_type_payload_map_unittest.cc
diff --git a/chrome/browser/sync/syncable/model_type_payload_map_unittest.cc b/chrome/browser/sync/syncable/model_type_payload_map_unittest.cc
deleted file mode 100644
index 28e30f9e939f58327a506de3edc018a1797081bc..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/syncable/model_type_payload_map_unittest.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/syncable/model_type_payload_map.h"
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/test/values_test_util.h"
-#include "base/values.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace syncable {
-namespace {
-
-using base::ExpectDictStringValue;
-
-class ModelTypePayloadMapTest : public testing::Test {};
-
-TEST_F(ModelTypePayloadMapTest, TypePayloadMapToSet) {
- ModelTypePayloadMap payloads;
- payloads[BOOKMARKS] = "bookmarkpayload";
- payloads[APPS] = "";
-
- const ModelTypeSet types(BOOKMARKS, APPS);
- EXPECT_TRUE(ModelTypePayloadMapToEnumSet(payloads).Equals(types));
-}
-
-TEST_F(ModelTypePayloadMapTest, TypePayloadMapToValue) {
- ModelTypePayloadMap payloads;
- payloads[BOOKMARKS] = "bookmarkpayload";
- payloads[APPS] = "";
-
- scoped_ptr<DictionaryValue> value(ModelTypePayloadMapToValue(payloads));
- EXPECT_EQ(2u, value->size());
- ExpectDictStringValue("bookmarkpayload", *value, "Bookmarks");
- ExpectDictStringValue("", *value, "Apps");
- EXPECT_FALSE(value->HasKey("Preferences"));
-}
-
-} // namespace
-} // namespace syncable
« no previous file with comments | « chrome/browser/sync/syncable/model_type_payload_map.cc ('k') | chrome/browser/sync/syncable/model_type_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698