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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/core/model_type_store_impl.cc ('k') | components/sync/core/network_resources.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sync/internal_api/public/model_type_store_impl.h" 5 #include "components/sync/core/model_type_store_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace syncer_v2 { 15 namespace syncer_v2 {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 store()->ReadData(id_list, base::Bind(&CaptureResutRecordsAndIdList, &result, 204 store()->ReadData(id_list, base::Bind(&CaptureResutRecordsAndIdList, &result,
205 &records, &missing_id_list)); 205 &records, &missing_id_list));
206 PumpLoop(); 206 PumpLoop();
207 ASSERT_EQ(ModelTypeStore::Result::SUCCESS, result); 207 ASSERT_EQ(ModelTypeStore::Result::SUCCESS, result);
208 ASSERT_THAT(*records, 208 ASSERT_THAT(*records,
209 testing::UnorderedElementsAre(RecordMatches("id1", "data1"))); 209 testing::UnorderedElementsAre(RecordMatches("id1", "data1")));
210 ASSERT_THAT(*missing_id_list, testing::UnorderedElementsAre("id3")); 210 ASSERT_THAT(*missing_id_list, testing::UnorderedElementsAre("id3"));
211 } 211 }
212 212
213 } // namespace syncer_v2 213 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/core/model_type_store_impl.cc ('k') | components/sync/core/network_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698