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

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

Issue 631773003: Replacing the OVERRIDE with override and FINAL with final in content/browser/appcache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/bind.h" 5 #include "base/bind.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/browser/appcache/appcache_database.h" 10 #include "content/browser/appcache/appcache_database.h"
(...skipping 21 matching lines...) Expand all
32 const char kSessionOnlyManifest[] = "http://www.sessiononly.com/cache.manifest"; 32 const char kSessionOnlyManifest[] = "http://www.sessiononly.com/cache.manifest";
33 33
34 class MockURLRequestContextGetter : public net::URLRequestContextGetter { 34 class MockURLRequestContextGetter : public net::URLRequestContextGetter {
35 public: 35 public:
36 MockURLRequestContextGetter( 36 MockURLRequestContextGetter(
37 net::URLRequestContext* context, 37 net::URLRequestContext* context,
38 base::MessageLoopProxy* message_loop_proxy) 38 base::MessageLoopProxy* message_loop_proxy)
39 : context_(context), message_loop_proxy_(message_loop_proxy) { 39 : context_(context), message_loop_proxy_(message_loop_proxy) {
40 } 40 }
41 41
42 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE { 42 virtual net::URLRequestContext* GetURLRequestContext() override {
43 return context_; 43 return context_;
44 } 44 }
45 45
46 virtual scoped_refptr<base::SingleThreadTaskRunner> 46 virtual scoped_refptr<base::SingleThreadTaskRunner>
47 GetNetworkTaskRunner() const OVERRIDE { 47 GetNetworkTaskRunner() const override {
48 return message_loop_proxy_; 48 return message_loop_proxy_;
49 } 49 }
50 50
51 protected: 51 protected:
52 virtual ~MockURLRequestContextGetter() {} 52 virtual ~MockURLRequestContextGetter() {}
53 53
54 private: 54 private:
55 net::URLRequestContext* context_; 55 net::URLRequestContext* context_;
56 scoped_refptr<base::SingleThreadTaskRunner> message_loop_proxy_; 56 scoped_refptr<base::SingleThreadTaskRunner> message_loop_proxy_;
57 }; 57 };
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); 214 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end());
215 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != 215 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) !=
216 origins.end()); 216 origins.end());
217 217
218 // Delete and let cleanup tasks run prior to returning. 218 // Delete and let cleanup tasks run prior to returning.
219 appcache_service = NULL; 219 appcache_service = NULL;
220 message_loop_.RunUntilIdle(); 220 message_loop_.RunUntilIdle();
221 } 221 }
222 222
223 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/chrome_appcache_service.h ('k') | content/browser/appcache/mock_appcache_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698