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

Side by Side Diff: webkit/appcache/mock_appcache_storage_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "webkit/appcache/appcache.h" 7 #include "webkit/appcache/appcache.h"
8 #include "webkit/appcache/appcache_group.h" 8 #include "webkit/appcache/appcache_group.h"
9 #include "webkit/appcache/appcache_response.h" 9 #include "webkit/appcache/appcache_response.h"
10 #include "webkit/appcache/appcache_storage.h" 10 #include "webkit/appcache/appcache_storage.h"
11 #include "webkit/appcache/mock_appcache_service.h" 11 #include "webkit/appcache/mock_appcache_service.h"
12 12
13 namespace appcache { 13 namespace appcache {
14 14
15 class MockAppCacheStorageTest : public testing::Test { 15 class MockAppCacheStorageTest : public testing::Test {
16 public: 16 public:
17 class MockStorageDelegate : public AppCacheStorage::Delegate { 17 class MockStorageDelegate : public AppCacheStorage::Delegate {
18 public: 18 public:
19 explicit MockStorageDelegate() 19 MockStorageDelegate()
20 : loaded_cache_id_(0), stored_group_success_(false), 20 : loaded_cache_id_(0), stored_group_success_(false),
21 obsoleted_success_(false), found_cache_id_(kNoCacheId) { 21 obsoleted_success_(false), found_cache_id_(kNoCacheId) {
22 } 22 }
23 23
24 void OnCacheLoaded(AppCache* cache, int64 cache_id) { 24 void OnCacheLoaded(AppCache* cache, int64 cache_id) {
25 loaded_cache_ = cache; 25 loaded_cache_ = cache;
26 loaded_cache_id_ = cache_id; 26 loaded_cache_id_ = cache_id;
27 } 27 }
28 28
29 void OnGroupLoaded(AppCacheGroup* group, const GURL& manifest_url) { 29 void OnGroupLoaded(AppCacheGroup* group, const GURL& manifest_url) {
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 EXPECT_TRUE(delegate.found_manifest_url_.is_empty()); 615 EXPECT_TRUE(delegate.found_manifest_url_.is_empty());
616 EXPECT_EQ(kNoCacheId, delegate.found_cache_id_); 616 EXPECT_EQ(kNoCacheId, delegate.found_cache_id_);
617 EXPECT_EQ(kNoResponseId, delegate.found_entry_.response_id()); 617 EXPECT_EQ(kNoResponseId, delegate.found_entry_.response_id());
618 EXPECT_EQ(kNoResponseId, delegate.found_fallback_entry_.response_id()); 618 EXPECT_EQ(kNoResponseId, delegate.found_fallback_entry_.response_id());
619 EXPECT_TRUE(delegate.found_fallback_url_.is_empty()); 619 EXPECT_TRUE(delegate.found_fallback_url_.is_empty());
620 EXPECT_EQ(0, delegate.found_entry_.types()); 620 EXPECT_EQ(0, delegate.found_entry_.types());
621 EXPECT_EQ(0, delegate.found_fallback_entry_.types()); 621 EXPECT_EQ(0, delegate.found_fallback_entry_.types());
622 } 622 }
623 623
624 } // namespace appcache 624 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_request_handler_unittest.cc ('k') | webkit/blob/blob_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698