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

Side by Side Diff: sync/engine/get_updates_processor_unittest.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « sync/engine/get_updates_processor.cc ('k') | sync/engine/model_type_worker.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 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 "sync/engine/get_updates_processor.h" 5 #include "sync/engine/get_updates_processor.h"
6 6
7 #include <stdint.h>
8
7 #include <string> 9 #include <string>
8 10
11 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
10 #include "base/stl_util.h" 13 #include "base/stl_util.h"
11 #include "sync/engine/get_updates_delegate.h" 14 #include "sync/engine/get_updates_delegate.h"
12 #include "sync/engine/update_handler.h" 15 #include "sync/engine/update_handler.h"
13 #include "sync/internal_api/public/base/model_type_test_util.h" 16 #include "sync/internal_api/public/base/model_type_test_util.h"
14 #include "sync/protocol/sync.pb.h" 17 #include "sync/protocol/sync.pb.h"
15 #include "sync/sessions/debug_info_getter.h" 18 #include "sync/sessions/debug_info_getter.h"
16 #include "sync/sessions/nudge_tracker.h" 19 #include "sync/sessions/nudge_tracker.h"
17 #include "sync/sessions/status_controller.h" 20 #include "sync/sessions/status_controller.h"
18 #include "sync/test/engine/fake_model_worker.h" 21 #include "sync/test/engine/fake_model_worker.h"
19 #include "sync/test/engine/mock_update_handler.h" 22 #include "sync/test/engine/mock_update_handler.h"
20 #include "sync/test/mock_invalidation.h" 23 #include "sync/test/mock_invalidation.h"
21 #include "sync/test/sessions/mock_debug_info_getter.h" 24 #include "sync/test/sessions/mock_debug_info_getter.h"
22 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
23 26
24 namespace syncer { 27 namespace syncer {
25 28
26 namespace { 29 namespace {
27 30
28 scoped_ptr<InvalidationInterface> BuildInvalidation( 31 scoped_ptr<InvalidationInterface> BuildInvalidation(
29 int64 version, 32 int64_t version,
30 const std::string& payload) { 33 const std::string& payload) {
31 return MockInvalidation::Build(version, payload); 34 return MockInvalidation::Build(version, payload);
32 } 35 }
33 36
34 } // namespace 37 } // namespace
35 38
36 using sessions::MockDebugInfoGetter; 39 using sessions::MockDebugInfoGetter;
37 40
38 // A test fixture for tests exercising download updates functions. 41 // A test fixture for tests exercising download updates functions.
39 class GetUpdatesProcessorTest : public ::testing::Test { 42 class GetUpdatesProcessorTest : public ::testing::Test {
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) { 509 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) {
507 sync_pb::DebugInfo debug_info; 510 sync_pb::DebugInfo debug_info;
508 AddDebugEvent(); 511 AddDebugEvent();
509 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); 512 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info);
510 EXPECT_EQ(1, debug_info.events_size()); 513 EXPECT_EQ(1, debug_info.events_size());
511 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); 514 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info);
512 EXPECT_EQ(1, debug_info.events_size()); 515 EXPECT_EQ(1, debug_info.events_size());
513 } 516 }
514 517
515 } // namespace syncer 518 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/get_updates_processor.cc ('k') | sync/engine/model_type_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698