OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/common/features/simple_feature.h" | 5 #include "extensions/common/features/simple_feature.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" |
10 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
11 #include "base/values.h" | 14 #include "base/values.h" |
12 #include "extensions/common/manifest.h" | 15 #include "extensions/common/manifest.h" |
13 #include "extensions/common/value_builder.h" | 16 #include "extensions/common/value_builder.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
15 | 18 |
16 namespace extensions { | 19 namespace extensions { |
17 | 20 |
18 namespace { | 21 namespace { |
19 | 22 |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 EXPECT_FALSE(SimpleFeature::IsIdInArray("", kIdArray, arraysize(kIdArray))); | 743 EXPECT_FALSE(SimpleFeature::IsIdInArray("", kIdArray, arraysize(kIdArray))); |
741 EXPECT_FALSE(SimpleFeature::IsIdInArray( | 744 EXPECT_FALSE(SimpleFeature::IsIdInArray( |
742 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", kIdArray, arraysize(kIdArray))); | 745 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", kIdArray, arraysize(kIdArray))); |
743 EXPECT_TRUE(SimpleFeature::IsIdInArray( | 746 EXPECT_TRUE(SimpleFeature::IsIdInArray( |
744 "bbbbccccdddddddddeeeeeeffffgghhh", kIdArray, arraysize(kIdArray))); | 747 "bbbbccccdddddddddeeeeeeffffgghhh", kIdArray, arraysize(kIdArray))); |
745 EXPECT_TRUE(SimpleFeature::IsIdInArray( | 748 EXPECT_TRUE(SimpleFeature::IsIdInArray( |
746 "aaaabbbbccccddddeeeeffffgggghhhh", kIdArray, arraysize(kIdArray))); | 749 "aaaabbbbccccddddeeeeffffgggghhhh", kIdArray, arraysize(kIdArray))); |
747 } | 750 } |
748 | 751 |
749 } // namespace extensions | 752 } // namespace extensions |
OLD | NEW |