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

Side by Side Diff: components/sync/api/model_type_service_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 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 <memory> 5 #include "components/sync/api/model_type_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "components/sync/api/data_type_error_handler_mock.h" 9 #include "components/sync/api/data_type_error_handler_mock.h"
10 #include "components/sync/api/fake_model_type_change_processor.h" 10 #include "components/sync/api/fake_model_type_change_processor.h"
11 #include "components/sync/api/stub_model_type_service.h" 11 #include "components/sync/api/stub_model_type_service.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 15
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 service()->ResolveConflict(local_data, remote_data).type()); 146 service()->ResolveConflict(local_data, remote_data).type());
147 147
148 local_data.specifics.clear_preference(); 148 local_data.specifics.clear_preference();
149 EXPECT_TRUE(local_data.is_deleted()); 149 EXPECT_TRUE(local_data.is_deleted());
150 EXPECT_FALSE(remote_data.is_deleted()); 150 EXPECT_FALSE(remote_data.is_deleted());
151 EXPECT_EQ(ConflictResolution::USE_REMOTE, 151 EXPECT_EQ(ConflictResolution::USE_REMOTE,
152 service()->ResolveConflict(local_data, remote_data).type()); 152 service()->ResolveConflict(local_data, remote_data).type());
153 } 153 }
154 154
155 } // namespace syncer 155 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/attachments/attachment_unittest.cc ('k') | components/sync/api/sync_change_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698