OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/url_matcher/substring_set_matcher.h" | 5 #include "components/url_matcher/substring_set_matcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
12 | 14 |
13 namespace url_matcher { | 15 namespace url_matcher { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 163 } |
162 | 164 |
163 TEST(SubstringSetMatcherTest, TestEmptyMatcher) { | 165 TEST(SubstringSetMatcherTest, TestEmptyMatcher) { |
164 SubstringSetMatcher matcher; | 166 SubstringSetMatcher matcher; |
165 std::set<int> matches; | 167 std::set<int> matches; |
166 matcher.Match("abd", &matches); | 168 matcher.Match("abd", &matches); |
167 EXPECT_TRUE(matches.empty()); | 169 EXPECT_TRUE(matches.empty()); |
168 } | 170 } |
169 | 171 |
170 } // namespace url_matcher | 172 } // namespace url_matcher |
OLD | NEW |