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 "chrome/common/extensions/matcher/url_matcher.h" | 5 #include "extensions/common/matcher/url_matcher.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // | 13 // |
14 // URLMatcherCondition | 14 // URLMatcherCondition |
15 // | 15 // |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 | 620 |
621 const int kConditionSetId = 1; | 621 const int kConditionSetId = 1; |
622 URLMatcherConditionSet::Vector insert; | 622 URLMatcherConditionSet::Vector insert; |
623 insert.push_back(make_scoped_refptr( | 623 insert.push_back(make_scoped_refptr( |
624 new URLMatcherConditionSet(kConditionSetId, conditions))); | 624 new URLMatcherConditionSet(kConditionSetId, conditions))); |
625 matcher.AddConditionSets(insert); | 625 matcher.AddConditionSets(insert); |
626 EXPECT_EQ(1u, matcher.MatchURL(url).size()); | 626 EXPECT_EQ(1u, matcher.MatchURL(url).size()); |
627 } | 627 } |
628 | 628 |
629 } // namespace extensions | 629 } // namespace extensions |
OLD | NEW |