| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "content/browser/appcache/manifest_parser.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 9 #include "webkit/browser/appcache/manifest_parser.h" | |
| 10 | |
| 11 using appcache::Manifest; | |
| 12 using appcache::NamespaceVector; | |
| 13 using appcache::APPCACHE_FALLBACK_NAMESPACE; | |
| 14 using appcache::APPCACHE_INTERCEPT_NAMESPACE; | |
| 15 using appcache::APPCACHE_NETWORK_NAMESPACE; | |
| 16 using appcache::PARSE_MANIFEST_ALLOWING_INTERCEPTS; | |
| 17 using appcache::PARSE_MANIFEST_PER_STANDARD; | |
| 18 | 10 |
| 19 namespace content { | 11 namespace content { |
| 20 | 12 |
| 21 class AppCacheManifestParserTest : public testing::Test { | 13 class AppCacheManifestParserTest : public testing::Test { |
| 22 }; | 14 }; |
| 23 | 15 |
| 24 TEST(AppCacheManifestParserTest, NoData) { | 16 TEST(AppCacheManifestParserTest, NoData) { |
| 25 GURL url; | 17 GURL url; |
| 26 Manifest manifest; | 18 Manifest manifest; |
| 27 EXPECT_FALSE(ParseManifest(url, "", 0, | 19 EXPECT_FALSE(ParseManifest(url, "", 0, |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 manifest.online_whitelist_namespaces[0].target_url); | 507 manifest.online_whitelist_namespaces[0].target_url); |
| 516 EXPECT_EQ( | 508 EXPECT_EQ( |
| 517 GURL("http://foo.com/network_pattern*"), | 509 GURL("http://foo.com/network_pattern*"), |
| 518 manifest.online_whitelist_namespaces[1].namespace_url); | 510 manifest.online_whitelist_namespaces[1].namespace_url); |
| 519 EXPECT_EQ( | 511 EXPECT_EQ( |
| 520 GURL(), | 512 GURL(), |
| 521 manifest.online_whitelist_namespaces[1].target_url); | 513 manifest.online_whitelist_namespaces[1].target_url); |
| 522 } | 514 } |
| 523 | 515 |
| 524 } // namespace content | 516 } // namespace content |
| OLD | NEW |