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

Side by Side Diff: content/browser/fileapi/blob_url_request_job_unittest.cc

Issue 623933003: Replacing the OVERRIDE with override and FINAL with final in content/browser/fileapi (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
« no previous file with comments | « no previous file | content/browser/fileapi/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 public: 56 public:
57 // A simple ProtocolHandler implementation to create BlobURLRequestJob. 57 // A simple ProtocolHandler implementation to create BlobURLRequestJob.
58 class MockProtocolHandler : 58 class MockProtocolHandler :
59 public net::URLRequestJobFactory::ProtocolHandler { 59 public net::URLRequestJobFactory::ProtocolHandler {
60 public: 60 public:
61 MockProtocolHandler(BlobURLRequestJobTest* test) : test_(test) {} 61 MockProtocolHandler(BlobURLRequestJobTest* test) : test_(test) {}
62 62
63 // net::URLRequestJobFactory::ProtocolHandler override. 63 // net::URLRequestJobFactory::ProtocolHandler override.
64 virtual net::URLRequestJob* MaybeCreateJob( 64 virtual net::URLRequestJob* MaybeCreateJob(
65 net::URLRequest* request, 65 net::URLRequest* request,
66 net::NetworkDelegate* network_delegate) const OVERRIDE { 66 net::NetworkDelegate* network_delegate) const override {
67 return new BlobURLRequestJob(request, 67 return new BlobURLRequestJob(request,
68 network_delegate, 68 network_delegate,
69 test_->blob_data_.get(), 69 test_->blob_data_.get(),
70 test_->file_system_context_.get(), 70 test_->file_system_context_.get(),
71 base::MessageLoopProxy::current().get()); 71 base::MessageLoopProxy::current().get());
72 } 72 }
73 73
74 private: 74 private:
75 BlobURLRequestJobTest* test_; 75 BlobURLRequestJobTest* test_;
76 }; 76 };
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type)); 408 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type));
409 EXPECT_EQ(kTestContentType, content_type); 409 EXPECT_EQ(kTestContentType, content_type);
410 void* iter = NULL; 410 void* iter = NULL;
411 std::string content_disposition; 411 std::string content_disposition;
412 EXPECT_TRUE(request_->response_headers()->EnumerateHeader( 412 EXPECT_TRUE(request_->response_headers()->EnumerateHeader(
413 &iter, "Content-Disposition", &content_disposition)); 413 &iter, "Content-Disposition", &content_disposition));
414 EXPECT_EQ(kTestContentDisposition, content_disposition); 414 EXPECT_EQ(kTestContentDisposition, content_disposition);
415 } 415 }
416 416
417 } // namespace content 417 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/fileapi/chrome_blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698