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

Side by Side Diff: sync/internal_api/public/base/unique_position_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/internal_api/public/base/unique_position.cc ('k') | sync/internal_api/public/base_node.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/unique_position.h" 5 #include "sync/internal_api/public/base/unique_position.h"
6 6
7 #include <stddef.h>
7 #include <stdint.h> 8 #include <stdint.h>
8 9
9 #include <algorithm> 10 #include <algorithm>
10 #include <functional> 11 #include <functional>
11 #include <string> 12 #include <string>
12 #include <vector> 13 #include <vector>
13 14
14 #include "base/base64.h" 15 #include "base/base64.h"
15 #include "base/basictypes.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/sha1.h" 19 #include "base/sha1.h"
19 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
20 #include "sync/protocol/unique_position.pb.h" 21 #include "sync/protocol/unique_position.pb.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 23
23 namespace syncer { 24 namespace syncer {
24 25
25 namespace { 26 namespace {
26 27
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // This requires values in the test harness to be hard-coded in ascending order. 695 // This requires values in the test harness to be hard-coded in ascending order.
695 TEST_F(CompressedPositionTest, OrderingTest) { 696 TEST_F(CompressedPositionTest, OrderingTest) {
696 for (size_t i = 0; i < positions_.size()-1; ++i) { 697 for (size_t i = 0; i < positions_.size()-1; ++i) {
697 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i+1]); 698 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i+1]);
698 } 699 }
699 } 700 }
700 701
701 } // namespace 702 } // namespace
702 703
703 } // namespace syncer 704 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/unique_position.cc ('k') | sync/internal_api/public/base_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698