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

Side by Side Diff: content/browser/fileapi/fileapi_message_filter_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
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 "content/browser/fileapi/fileapi_message_filter.h" 5 #include "content/browser/fileapi/fileapi_message_filter.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 30 matching lines...) Expand all
41 41
42 } // namespace 42 } // namespace
43 43
44 class FileAPIMessageFilterTest : public testing::Test { 44 class FileAPIMessageFilterTest : public testing::Test {
45 public: 45 public:
46 FileAPIMessageFilterTest() 46 FileAPIMessageFilterTest()
47 : io_browser_thread_(BrowserThread::IO, &message_loop_) { 47 : io_browser_thread_(BrowserThread::IO, &message_loop_) {
48 } 48 }
49 49
50 protected: 50 protected:
51 virtual void SetUp() OVERRIDE { 51 virtual void SetUp() override {
52 file_system_context_ = 52 file_system_context_ =
53 CreateFileSystemContextForTesting(NULL, base::FilePath()); 53 CreateFileSystemContextForTesting(NULL, base::FilePath());
54 54
55 std::vector<storage::FileSystemType> types; 55 std::vector<storage::FileSystemType> types;
56 file_system_context_->GetFileSystemTypes(&types); 56 file_system_context_->GetFileSystemTypes(&types);
57 for (size_t i = 0; i < types.size(); ++i) { 57 for (size_t i = 0; i < types.size(); ++i) {
58 ChildProcessSecurityPolicyImpl::GetInstance() 58 ChildProcessSecurityPolicyImpl::GetInstance()
59 ->RegisterFileSystemPermissionPolicy( 59 ->RegisterFileSystemPermissionPolicy(
60 types[i], 60 types[i],
61 storage::FileSystemContext::GetPermissionPolicy(types[i])); 61 storage::FileSystemContext::GetPermissionPolicy(types[i]));
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 EXPECT_TRUE(filter_->OnMessageReceived(start_message)); 297 EXPECT_TRUE(filter_->OnMessageReceived(start_message));
298 298
299 StreamHostMsg_Clone clone_message(kDestUrl, kUrl); 299 StreamHostMsg_Clone clone_message(kDestUrl, kUrl);
300 EXPECT_TRUE(filter_->OnMessageReceived(clone_message)); 300 EXPECT_TRUE(filter_->OnMessageReceived(clone_message));
301 301
302 ASSERT_FALSE(stream_registry->GetStream(kUrl).get() == NULL); 302 ASSERT_FALSE(stream_registry->GetStream(kUrl).get() == NULL);
303 ASSERT_FALSE(stream_registry->GetStream(kDestUrl).get() == NULL); 303 ASSERT_FALSE(stream_registry->GetStream(kDestUrl).get() == NULL);
304 } 304 }
305 305
306 } // namespace content 306 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.h ('k') | content/browser/fileapi/local_file_stream_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698