| 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/node_ordinal.h" | 5 #include "components/sync/base/node_ordinal.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <algorithm> | 7 #include <algorithm> |
| 10 #include <cstddef> | 8 #include <cstddef> |
| 11 #include <functional> | 9 #include <functional> |
| 12 #include <limits> | 10 #include <limits> |
| 13 #include <vector> | 11 #include <vector> |
| 14 | 12 |
| 15 #include "base/macros.h" | 13 #include "base/macros.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 15 |
| 18 namespace syncer { | 16 namespace syncer { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 TEST(NodeOrdinalTest, CreateBetween) { | 138 TEST(NodeOrdinalTest, CreateBetween) { |
| 141 const NodeOrdinal ordinal1("\1\1\1\1\1\1\1\1"); | 139 const NodeOrdinal ordinal1("\1\1\1\1\1\1\1\1"); |
| 142 const NodeOrdinal ordinal2("\1\1\1\1\1\1\1\3"); | 140 const NodeOrdinal ordinal2("\1\1\1\1\1\1\1\3"); |
| 143 EXPECT_EQ("\1\1\1\1\1\1\1\2", | 141 EXPECT_EQ("\1\1\1\1\1\1\1\2", |
| 144 ordinal1.CreateBetween(ordinal2).ToInternalValue()); | 142 ordinal1.CreateBetween(ordinal2).ToInternalValue()); |
| 145 } | 143 } |
| 146 | 144 |
| 147 } // namespace | 145 } // namespace |
| 148 | 146 |
| 149 } // namespace syncer | 147 } // namespace syncer |
| OLD | NEW |