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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "extensions/common/url_pattern.h" | 6 #include "extensions/common/url_pattern.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "url/gurl.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 // See url_pattern.h for examples of valid and invalid patterns. | 12 // See url_pattern.h for examples of valid and invalid patterns. |
13 | 13 |
14 static const int kAllSchemes = | 14 static const int kAllSchemes = |
15 URLPattern::SCHEME_HTTP | | 15 URLPattern::SCHEME_HTTP | |
16 URLPattern::SCHEME_HTTPS | | 16 URLPattern::SCHEME_HTTPS | |
17 URLPattern::SCHEME_FILE | | 17 URLPattern::SCHEME_FILE | |
18 URLPattern::SCHEME_FTP | | 18 URLPattern::SCHEME_FTP | |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 EXPECT_TRUE(StrictlyContains(pattern10, pattern12)); | 793 EXPECT_TRUE(StrictlyContains(pattern10, pattern12)); |
794 EXPECT_TRUE(StrictlyContains(pattern10, pattern13)); | 794 EXPECT_TRUE(StrictlyContains(pattern10, pattern13)); |
795 | 795 |
796 // More... | 796 // More... |
797 EXPECT_TRUE(StrictlyContains(pattern12, pattern11)); | 797 EXPECT_TRUE(StrictlyContains(pattern12, pattern11)); |
798 EXPECT_TRUE(NeitherContains(pattern11, pattern13)); | 798 EXPECT_TRUE(NeitherContains(pattern11, pattern13)); |
799 EXPECT_TRUE(StrictlyContains(pattern12, pattern13)); | 799 EXPECT_TRUE(StrictlyContains(pattern12, pattern13)); |
800 } | 800 } |
801 | 801 |
802 } // namespace | 802 } // namespace |
OLD | NEW |