| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/appcache/appcache.h" |
| 6 #include "content/browser/appcache/appcache_host.h" |
| 5 #include "content/browser/appcache/mock_appcache_service.h" | 7 #include "content/browser/appcache/mock_appcache_service.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "webkit/browser/appcache/appcache.h" | |
| 8 #include "webkit/browser/appcache/appcache_host.h" | |
| 9 | |
| 10 using appcache::AppCache; | |
| 11 using appcache::AppCacheDatabase; | |
| 12 using appcache::AppCacheEntry; | |
| 13 using appcache::AppCacheFrontend; | |
| 14 using appcache::AppCacheGroup; | |
| 15 using appcache::AppCacheHost; | |
| 16 using appcache::AppCacheInfo; | |
| 17 using appcache::AppCacheErrorDetails; | |
| 18 using appcache::AppCacheEventID; | |
| 19 using appcache::APPCACHE_FALLBACK_NAMESPACE; | |
| 20 using appcache::APPCACHE_INTERCEPT_NAMESPACE; | |
| 21 using appcache::AppCacheLogLevel; | |
| 22 using appcache::Manifest; | |
| 23 using appcache::Namespace; | |
| 24 using appcache::NamespaceVector; | |
| 25 using appcache::APPCACHE_NETWORK_NAMESPACE; | |
| 26 using appcache::PARSE_MANIFEST_ALLOWING_INTERCEPTS; | |
| 27 using appcache::PARSE_MANIFEST_PER_STANDARD; | |
| 28 using appcache::AppCacheStatus; | |
| 29 | 9 |
| 30 namespace content { | 10 namespace content { |
| 31 | 11 |
| 32 namespace { | 12 namespace { |
| 33 | 13 |
| 34 class MockAppCacheFrontend : public AppCacheFrontend { | 14 class MockAppCacheFrontend : public AppCacheFrontend { |
| 35 public: | 15 public: |
| 36 virtual void OnCacheSelected(int host_id, const AppCacheInfo& info) OVERRIDE { | 16 virtual void OnCacheSelected(int host_id, const AppCacheInfo& info) OVERRIDE { |
| 37 } | 17 } |
| 38 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 18 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 EXPECT_TRUE(star_greediness.IsMatch( | 690 EXPECT_TRUE(star_greediness.IsMatch( |
| 711 GURL("http://foo.com/a/b/01234567890abcdef/b"))); | 691 GURL("http://foo.com/a/b/01234567890abcdef/b"))); |
| 712 EXPECT_TRUE(star_greediness.IsMatch( | 692 EXPECT_TRUE(star_greediness.IsMatch( |
| 713 GURL("http://foo.com/a/b/01234567890abcdef/b01234567890abcdef/b"))); | 693 GURL("http://foo.com/a/b/01234567890abcdef/b01234567890abcdef/b"))); |
| 714 EXPECT_TRUE(star_greediness.IsMatch( | 694 EXPECT_TRUE(star_greediness.IsMatch( |
| 715 GURL("http://foo.com/a/b/01234567890abcdef_eat_some_more_characters_" | 695 GURL("http://foo.com/a/b/01234567890abcdef_eat_some_more_characters_" |
| 716 "/and_even_more_for_the_heck_of_it/01234567890abcdef/b"))); | 696 "/and_even_more_for_the_heck_of_it/01234567890abcdef/b"))); |
| 717 } | 697 } |
| 718 | 698 |
| 719 } // namespace content | 699 } // namespace content |
| OLD | NEW |