Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/appcache/manifest_parser_unittest.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698