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

Side by Side Diff: components/sync/model_impl/passthrough_metadata_change_list_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: rebase on r471297 Created 3 years, 7 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/model_impl/passthrough_metadata_change_list.h" 5 #include "components/sync/model_impl/passthrough_metadata_change_list.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 16 #include "base/run_loop.h"
16 #include "components/sync/model/mock_model_type_store.h" 17 #include "components/sync/model/mock_model_type_store.h"
17 #include "components/sync/protocol/entity_metadata.pb.h" 18 #include "components/sync/protocol/entity_metadata.pb.h"
18 #include "components/sync/protocol/model_type_state.pb.h" 19 #include "components/sync/protocol/model_type_state.pb.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 21
21 namespace syncer { 22 namespace syncer {
22 23
23 namespace { 24 namespace {
24 25
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 mcl()->ClearModelTypeState(); 172 mcl()->ClearModelTypeState();
172 mcl()->UpdateMetadata(kKey1, EntityMetadata()); 173 mcl()->UpdateMetadata(kKey1, EntityMetadata());
173 mcl()->ClearMetadata(kKey1); 174 mcl()->ClearMetadata(kKey1);
174 EXPECT_EQ(1u, global_metadata_vector().size()); 175 EXPECT_EQ(1u, global_metadata_vector().size());
175 EXPECT_EQ(1, clear_global_metadata_count()); 176 EXPECT_EQ(1, clear_global_metadata_count());
176 EXPECT_EQ(1u, update_metadata_map().size()); 177 EXPECT_EQ(1u, update_metadata_map().size());
177 EXPECT_EQ(1u, clear_metadata_set().size()); 178 EXPECT_EQ(1u, clear_metadata_set().size());
178 } 179 }
179 180
180 } // namespace syncer 181 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698