OLD | NEW |
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 Loading... |
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 |
OLD | NEW |