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

Side by Side Diff: components/sync/engine/model_safe_worker_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/engine/model_safe_worker.h" 5 #include "components/sync/engine/model_safe_worker.h"
6 6
7 #include <memory>
8
9 #include "base/values.h" 7 #include "base/values.h"
10 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
11 9
12 namespace syncer { 10 namespace syncer {
13 namespace { 11 namespace {
14 12
15 class ModelSafeWorkerTest : public ::testing::Test {}; 13 class ModelSafeWorkerTest : public ::testing::Test {};
16 14
17 TEST_F(ModelSafeWorkerTest, ModelSafeRoutingInfoToValue) { 15 TEST_F(ModelSafeWorkerTest, ModelSafeRoutingInfoToValue) {
18 ModelSafeRoutingInfo routing_info; 16 ModelSafeRoutingInfo routing_info;
(...skipping 27 matching lines...) Expand all
46 ModelSafeRoutingInfo routing_info; 44 ModelSafeRoutingInfo routing_info;
47 routing_info[BOOKMARKS] = GROUP_PASSIVE; 45 routing_info[BOOKMARKS] = GROUP_PASSIVE;
48 routing_info[NIGORI] = GROUP_UI; 46 routing_info[NIGORI] = GROUP_UI;
49 routing_info[PREFERENCES] = GROUP_DB; 47 routing_info[PREFERENCES] = GROUP_DB;
50 const ModelTypeSet expected_types(BOOKMARKS, NIGORI, PREFERENCES); 48 const ModelTypeSet expected_types(BOOKMARKS, NIGORI, PREFERENCES);
51 EXPECT_EQ(expected_types, GetRoutingInfoTypes(routing_info)); 49 EXPECT_EQ(expected_types, GetRoutingInfoTypes(routing_info));
52 } 50 }
53 51
54 } // namespace 52 } // namespace
55 } // namespace syncer 53 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698