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

Side by Side Diff: components/sync/engine_impl/get_updates_processor_unittest.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/engine_impl/get_updates_processor.h" 5 #include "components/sync/engine_impl/get_updates_processor.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 MockUpdateHandler* handler = new MockUpdateHandler(type); 85 MockUpdateHandler* handler = new MockUpdateHandler(type);
86 update_handler_map_.insert(std::make_pair(type, handler)); 86 update_handler_map_.insert(std::make_pair(type, handler));
87 87
88 return handler; 88 return handler;
89 } 89 }
90 90
91 private: 91 private:
92 ModelTypeSet enabled_types_; 92 ModelTypeSet enabled_types_;
93 UpdateHandlerMap update_handler_map_; 93 UpdateHandlerMap update_handler_map_;
94 STLValueDeleter<UpdateHandlerMap> update_handler_deleter_; 94 base::STLValueDeleter<UpdateHandlerMap> update_handler_deleter_;
95 std::unique_ptr<GetUpdatesProcessor> get_updates_processor_; 95 std::unique_ptr<GetUpdatesProcessor> get_updates_processor_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessorTest); 97 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessorTest);
98 }; 98 };
99 99
100 // Basic test to make sure nudges are expressed properly in the request. 100 // Basic test to make sure nudges are expressed properly in the request.
101 TEST_F(GetUpdatesProcessorTest, BookmarkNudge) { 101 TEST_F(GetUpdatesProcessorTest, BookmarkNudge) {
102 sessions::NudgeTracker nudge_tracker; 102 sessions::NudgeTracker nudge_tracker;
103 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS)); 103 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS));
104 104
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) { 491 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) {
492 sync_pb::DebugInfo debug_info; 492 sync_pb::DebugInfo debug_info;
493 AddDebugEvent(); 493 AddDebugEvent();
494 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); 494 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info);
495 EXPECT_EQ(1, debug_info.events_size()); 495 EXPECT_EQ(1, debug_info.events_size());
496 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); 496 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info);
497 EXPECT_EQ(1, debug_info.events_size()); 497 EXPECT_EQ(1, debug_info.events_size());
498 } 498 }
499 499
500 } // namespace syncer 500 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/protocol_event_buffer.h ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698