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

Side by Side Diff: components/sync/base/node_ordinal_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 months 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 | « components/sync/base/nigori_unittest.cc ('k') | components/sync/base/ordinal_unittest.cc » ('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 "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
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
OLDNEW
« no previous file with comments | « components/sync/base/nigori_unittest.cc ('k') | components/sync/base/ordinal_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698