OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authos. All rights reserved. | 1 // Copyright (c) 2009 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 "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "webkit/appcache/manifest_parser.h" | 9 #include "webkit/appcache/manifest_parser.h" |
10 | 10 |
11 namespace appcache { | 11 namespace appcache { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 "CACHE MANIFEST\r" | 308 "CACHE MANIFEST\r" |
309 "resource.txt this stuff after the white space should be ignored\r"); | 309 "resource.txt this stuff after the white space should be ignored\r"); |
310 EXPECT_TRUE(ParseManifest(kUrl, kData.c_str(), kData.length(), manifest)); | 310 EXPECT_TRUE(ParseManifest(kUrl, kData.c_str(), kData.length(), manifest)); |
311 | 311 |
312 base::hash_set<std::string> urls = manifest.explicit_urls; | 312 base::hash_set<std::string> urls = manifest.explicit_urls; |
313 EXPECT_TRUE(urls.find("http://smorg.borg/resource.txt") != urls.end()); | 313 EXPECT_TRUE(urls.find("http://smorg.borg/resource.txt") != urls.end()); |
314 } | 314 } |
315 | 315 |
316 } // namespace appcache | 316 } // namespace appcache |
317 | 317 |
OLD | NEW |