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

Side by Side Diff: components/sync/core/simple_metadata_change_list_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 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
5 #include "components/sync/core/simple_metadata_change_list.h" 5 #include "components/sync/core/simple_metadata_change_list.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "components/sync/api/mock_model_type_store.h" 11 #include "components/sync/model/mock_model_type_store.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 namespace { 15 namespace {
16 16
17 using WriteBatch = ModelTypeStore::WriteBatch; 17 using WriteBatch = ModelTypeStore::WriteBatch;
18 18
19 void RecordMetadataWrite(std::map<std::string, std::string>* map, 19 void RecordMetadataWrite(std::map<std::string, std::string>* map,
20 WriteBatch* batch, 20 WriteBatch* batch,
21 const std::string& key, 21 const std::string& key,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 cl.TransferChanges(store(), batch.get()); 182 cl.TransferChanges(store(), batch.get());
183 183
184 EXPECT_TRUE(delete_set.find("client_tag") != delete_set.end()); 184 EXPECT_TRUE(delete_set.find("client_tag") != delete_set.end());
185 EXPECT_TRUE(change_map.find("client_tag") == change_map.end()); 185 EXPECT_TRUE(change_map.find("client_tag") == change_map.end());
186 EXPECT_TRUE(delete_called); 186 EXPECT_TRUE(delete_called);
187 EXPECT_TRUE(global_metadata.empty()); 187 EXPECT_TRUE(global_metadata.empty());
188 } 188 }
189 189
190 } // namespace 190 } // namespace
191 } // namespace syncer 191 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core/simple_metadata_change_list.h ('k') | components/sync/core/test/model_type_store_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698