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

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

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated 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 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
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
OLDNEW
« no previous file with comments | « components/sync/core/simple_metadata_change_list.h ('k') | components/sync/core/test/fake_model_type_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698