OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/sync/core/simple_metadata_change_list.h" | 5 #include "components/sync/core/simple_metadata_change_list.h" |
5 | 6 |
| 7 #include <set> |
| 8 |
6 #include "base/bind.h" | 9 #include "base/bind.h" |
7 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
8 #include "components/sync/api/mock_model_type_store.h" | 11 #include "components/sync/api/mock_model_type_store.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
10 | 13 |
11 namespace syncer { | 14 namespace syncer { |
12 namespace { | 15 namespace { |
13 | 16 |
14 using WriteBatch = ModelTypeStore::WriteBatch; | 17 using WriteBatch = ModelTypeStore::WriteBatch; |
15 | 18 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 cl.TransferChanges(store(), batch.get()); | 182 cl.TransferChanges(store(), batch.get()); |
180 | 183 |
181 EXPECT_TRUE(delete_set.find("client_tag") != delete_set.end()); | 184 EXPECT_TRUE(delete_set.find("client_tag") != delete_set.end()); |
182 EXPECT_TRUE(change_map.find("client_tag") == change_map.end()); | 185 EXPECT_TRUE(change_map.find("client_tag") == change_map.end()); |
183 EXPECT_TRUE(delete_called); | 186 EXPECT_TRUE(delete_called); |
184 EXPECT_TRUE(global_metadata.empty()); | 187 EXPECT_TRUE(global_metadata.empty()); |
185 } | 188 } |
186 | 189 |
187 } // namespace | 190 } // namespace |
188 } // namespace syncer | 191 } // namespace syncer |
OLD | NEW |