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/enum_set.h" | 5 #include "components/sync/base/enum_set.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace syncer { | 11 namespace syncer { |
12 namespace { | 12 namespace { |
13 | 13 |
14 enum TestEnum { | 14 enum TestEnum { |
15 TEST_0, | 15 TEST_0, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 TEST_F(EnumSetTest, Difference) { | 187 TEST_F(EnumSetTest, Difference) { |
188 const TestEnumSet enums1(TEST_3, TEST_4); | 188 const TestEnumSet enums1(TEST_3, TEST_4); |
189 const TestEnumSet enums2(TEST_2, TEST_3); | 189 const TestEnumSet enums2(TEST_2, TEST_3); |
190 const TestEnumSet enums3 = Difference(enums1, enums2); | 190 const TestEnumSet enums3 = Difference(enums1, enums2); |
191 | 191 |
192 EXPECT_EQ(TestEnumSet(TEST_4), enums3); | 192 EXPECT_EQ(TestEnumSet(TEST_4), enums3); |
193 } | 193 } |
194 | 194 |
195 } // namespace | 195 } // namespace |
196 } // namespace syncer | 196 } // namespace syncer |
OLD | NEW |