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 "components/sync/base/unique_position.h" | 5 #include "components/sync/base/unique_position.h" |
6 | 6 |
7 #include <stddef.h> | |
8 #include <stdint.h> | |
9 | |
10 #include <algorithm> | 7 #include <algorithm> |
11 #include <functional> | 8 #include <functional> |
12 #include <memory> | 9 #include <memory> |
13 #include <string> | |
14 #include <vector> | 10 #include <vector> |
15 | 11 |
16 #include "base/base64.h" | 12 #include "base/base64.h" |
17 #include "base/logging.h" | 13 #include "base/logging.h" |
18 #include "base/macros.h" | 14 #include "base/macros.h" |
19 #include "base/sha1.h" | 15 #include "base/sha1.h" |
20 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
21 #include "components/sync/protocol/unique_position.pb.h" | 17 #include "components/sync/protocol/unique_position.pb.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
23 | 19 |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 // This requires values in the test harness to be hard-coded in ascending order. | 671 // This requires values in the test harness to be hard-coded in ascending order. |
676 TEST_F(CompressedPositionTest, OrderingTest) { | 672 TEST_F(CompressedPositionTest, OrderingTest) { |
677 for (size_t i = 0; i < positions_.size() - 1; ++i) { | 673 for (size_t i = 0; i < positions_.size() - 1; ++i) { |
678 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i + 1]); | 674 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i + 1]); |
679 } | 675 } |
680 } | 676 } |
681 | 677 |
682 } // namespace | 678 } // namespace |
683 | 679 |
684 } // namespace syncer | 680 } // namespace syncer |
OLD | NEW |