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 <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <functional> | 11 #include <functional> |
| 12 #include <memory> |
12 #include <string> | 13 #include <string> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/base64.h" | 16 #include "base/base64.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
17 #include "base/macros.h" | 18 #include "base/macros.h" |
18 #include "base/memory/scoped_ptr.h" | |
19 #include "base/sha1.h" | 19 #include "base/sha1.h" |
20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
21 #include "sync/protocol/unique_position.pb.h" | 21 #include "sync/protocol/unique_position.pb.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 class UniquePositionTest : public ::testing::Test { | 28 class UniquePositionTest : public ::testing::Test { |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 // 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. |
696 TEST_F(CompressedPositionTest, OrderingTest) { | 696 TEST_F(CompressedPositionTest, OrderingTest) { |
697 for (size_t i = 0; i < positions_.size()-1; ++i) { | 697 for (size_t i = 0; i < positions_.size()-1; ++i) { |
698 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i+1]); | 698 EXPECT_PRED_FORMAT2(LessThan, positions_[i], positions_[i+1]); |
699 } | 699 } |
700 } | 700 } |
701 | 701 |
702 } // namespace | 702 } // namespace |
703 | 703 |
704 } // namespace syncer | 704 } // namespace syncer |
OLD | NEW |