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

Side by Side Diff: content/browser/appcache/mock_appcache_storage_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 "base/run_loop.h" 5 #include "base/run_loop.h"
6 #include "content/browser/appcache/appcache.h"
7 #include "content/browser/appcache/appcache_group.h"
8 #include "content/browser/appcache/appcache_response.h"
9 #include "content/browser/appcache/appcache_storage.h"
6 #include "content/browser/appcache/mock_appcache_service.h" 10 #include "content/browser/appcache/mock_appcache_service.h"
7 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
8 #include "webkit/browser/appcache/appcache.h"
9 #include "webkit/browser/appcache/appcache_group.h"
10 #include "webkit/browser/appcache/appcache_response.h"
11 #include "webkit/browser/appcache/appcache_storage.h"
12
13 using appcache::AppCache;
14 using appcache::AppCacheEntry;
15 using appcache::AppCacheGroup;
16 using appcache::AppCacheStorage;
17 using appcache::APPCACHE_FALLBACK_NAMESPACE;
18 using appcache::APPCACHE_INTERCEPT_NAMESPACE;
19 using appcache::kAppCacheNoCacheId;
20 using appcache::kAppCacheNoResponseId;
21 using appcache::Manifest;
22 using appcache::Namespace;
23 using appcache::APPCACHE_NETWORK_NAMESPACE;
24 12
25 namespace content { 13 namespace content {
26 14
27 class MockAppCacheStorageTest : public testing::Test { 15 class MockAppCacheStorageTest : public testing::Test {
28 public: 16 public:
29 class MockStorageDelegate : public AppCacheStorage::Delegate { 17 class MockStorageDelegate : public AppCacheStorage::Delegate {
30 public: 18 public:
31 explicit MockStorageDelegate() 19 explicit MockStorageDelegate()
32 : loaded_cache_id_(0), stored_group_success_(false), 20 : loaded_cache_id_(0), stored_group_success_(false),
33 obsoleted_success_(false), found_cache_id_(kAppCacheNoCacheId) { 21 obsoleted_success_(false), found_cache_id_(kAppCacheNoCacheId) {
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 EXPECT_EQ(kAppCacheNoCacheId, delegate.found_cache_id_); 625 EXPECT_EQ(kAppCacheNoCacheId, delegate.found_cache_id_);
638 EXPECT_EQ(kAppCacheNoResponseId, delegate.found_entry_.response_id()); 626 EXPECT_EQ(kAppCacheNoResponseId, delegate.found_entry_.response_id());
639 EXPECT_EQ(kAppCacheNoResponseId, 627 EXPECT_EQ(kAppCacheNoResponseId,
640 delegate.found_fallback_entry_.response_id()); 628 delegate.found_fallback_entry_.response_id());
641 EXPECT_TRUE(delegate.found_fallback_url_.is_empty()); 629 EXPECT_TRUE(delegate.found_fallback_url_.is_empty());
642 EXPECT_EQ(0, delegate.found_entry_.types()); 630 EXPECT_EQ(0, delegate.found_entry_.types());
643 EXPECT_EQ(0, delegate.found_fallback_entry_.types()); 631 EXPECT_EQ(0, delegate.found_fallback_entry_.types());
644 } 632 }
645 633
646 } // namespace content 634 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698