OLD | NEW |
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 Loading... |
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 |
OLD | NEW |