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

Unified Diff: sync/internal_api/public/sessions/sync_source_info_unittest.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 years, 5 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/internal_api/public/sessions/sync_source_info.cc ('k') | sync/sessions/nudge_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/sessions/sync_source_info_unittest.cc
diff --git a/sync/internal_api/public/sessions/sync_source_info_unittest.cc b/sync/internal_api/public/sessions/sync_source_info_unittest.cc
deleted file mode 100644
index cbdecf170c8a167417ea16b6fd7e8671413c1236..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/sessions/sync_source_info_unittest.cc
+++ /dev/null
@@ -1,42 +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 "sync/internal_api/public/sessions/sync_source_info.h"
-
-#include "base/test/values_test_util.h"
-#include "base/values.h"
-#include "sync/internal_api/public/base/model_type.h"
-#include "sync/internal_api/public/base/model_type_invalidation_map.h"
-#include "sync/protocol/sync.pb.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace syncer {
-namespace sessions {
-namespace {
-
-using base::ExpectDictDictionaryValue;
-using base::ExpectDictStringValue;
-
-class SyncSourceInfoTest : public testing::Test {};
-
-TEST_F(SyncSourceInfoTest, SyncSourceInfoToValue) {
- sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source =
- sync_pb::GetUpdatesCallerInfo::PERIODIC;
- ModelTypeInvalidationMap types;
- types[PREFERENCES].payload = "preferencespayload";
- types[EXTENSIONS].payload = "";
- scoped_ptr<base::DictionaryValue> expected_types_value(
- ModelTypeInvalidationMapToValue(types));
-
- SyncSourceInfo source_info(updates_source, types);
-
- scoped_ptr<base::DictionaryValue> value(source_info.ToValue());
- EXPECT_EQ(2u, value->size());
- ExpectDictStringValue("PERIODIC", *value, "updatesSource");
- ExpectDictDictionaryValue(*expected_types_value, *value, "types");
-}
-
-} // namespace syncer
-} // namespace sessions
-} // namespace
« no previous file with comments | « sync/internal_api/public/sessions/sync_source_info.cc ('k') | sync/sessions/nudge_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698