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/url_matcher.h" | 5 #include "components/url_matcher/url_matcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "url/gurl.h" | 12 #include "url/gurl.h" |
10 | 13 |
11 namespace url_matcher { | 14 namespace url_matcher { |
12 | 15 |
13 // | 16 // |
14 // URLMatcherCondition | 17 // URLMatcherCondition |
15 // | 18 // |
16 | 19 |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 conditions.insert(factory->CreateOriginAndPathMatchesCondition("val")); | 980 conditions.insert(factory->CreateOriginAndPathMatchesCondition("val")); |
978 const int kConditionSetId = 1; | 981 const int kConditionSetId = 1; |
979 URLMatcherConditionSet::Vector insert; | 982 URLMatcherConditionSet::Vector insert; |
980 insert.push_back(make_scoped_refptr( | 983 insert.push_back(make_scoped_refptr( |
981 new URLMatcherConditionSet(kConditionSetId, conditions))); | 984 new URLMatcherConditionSet(kConditionSetId, conditions))); |
982 matcher.AddConditionSets(insert); | 985 matcher.AddConditionSets(insert); |
983 EXPECT_EQ(0u, matcher.MatchURL(url).size()); | 986 EXPECT_EQ(0u, matcher.MatchURL(url).size()); |
984 } | 987 } |
985 | 988 |
986 } // namespace url_matcher | 989 } // namespace url_matcher |
OLD | NEW |