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

Side by Side Diff: sync/internal_api/public/base/enum_set_unittest.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 "sync/internal_api/public/base/enum_set.h" 5 #include "sync/internal_api/public/base/enum_set.h"
6 6
7 #include "base/basictypes.h" 7 #include <stddef.h>
8
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace syncer { 11 namespace syncer {
11 namespace { 12 namespace {
12 13
13 enum TestEnum { 14 enum TestEnum {
14 TEST_0, 15 TEST_0,
15 TEST_MIN = TEST_0, 16 TEST_MIN = TEST_0,
16 TEST_1, 17 TEST_1,
17 TEST_2, 18 TEST_2,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 TEST_F(EnumSetTest, Difference) { 187 TEST_F(EnumSetTest, Difference) {
187 const TestEnumSet enums1(TEST_3, TEST_4); 188 const TestEnumSet enums1(TEST_3, TEST_4);
188 const TestEnumSet enums2(TEST_2, TEST_3); 189 const TestEnumSet enums2(TEST_2, TEST_3);
189 const TestEnumSet enums3 = Difference(enums1, enums2); 190 const TestEnumSet enums3 = Difference(enums1, enums2);
190 191
191 EXPECT_TRUE(enums3.Equals(TestEnumSet(TEST_4))); 192 EXPECT_TRUE(enums3.Equals(TestEnumSet(TEST_4)));
192 } 193 }
193 194
194 } // namespace 195 } // namespace
195 } // namespace syncer 196 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/enum_set.h ('k') | sync/internal_api/public/base/invalidation_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698