| 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 "extensions/common/url_pattern_set.h" | 5 #include "extensions/common/url_pattern_set.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "googleurl/src/gurl.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 void AddPattern(URLPatternSet* set, const std::string& pattern) { | 15 void AddPattern(URLPatternSet* set, const std::string& pattern) { |
| 16 int schemes = URLPattern::SCHEME_ALL; | 16 int schemes = URLPattern::SCHEME_ALL; |
| 17 set->AddPattern(URLPattern(schemes, pattern)); | 17 set->AddPattern(URLPattern(schemes, pattern)); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 AddPattern(&expected, yahoo_b); | 387 AddPattern(&expected, yahoo_b); |
| 388 AddPattern(&expected, yahoo_c); | 388 AddPattern(&expected, yahoo_c); |
| 389 AddPattern(&expected, reddit_a); | 389 AddPattern(&expected, reddit_a); |
| 390 AddPattern(&expected, reddit_b); | 390 AddPattern(&expected, reddit_b); |
| 391 AddPattern(&expected, reddit_c); | 391 AddPattern(&expected, reddit_c); |
| 392 EXPECT_EQ(expected, result); | 392 EXPECT_EQ(expected, result); |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace extensions | 396 } // namespace extensions |
| OLD | NEW |