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

Side by Side Diff: content/browser/fileapi/file_system_operation_runner_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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "content/public/test/test_file_system_context.h" 9 #include "content/public/test/test_file_system_context.h"
10 #include "storage/browser/fileapi/file_system_context.h" 10 #include "storage/browser/fileapi/file_system_context.h"
(...skipping 24 matching lines...) Expand all
35 ASSERT_FALSE(*cancel_done); 35 ASSERT_FALSE(*cancel_done);
36 *cancel_done = true; 36 *cancel_done = true;
37 *status_out = status; 37 *status_out = status;
38 } 38 }
39 39
40 class FileSystemOperationRunnerTest : public testing::Test { 40 class FileSystemOperationRunnerTest : public testing::Test {
41 protected: 41 protected:
42 FileSystemOperationRunnerTest() {} 42 FileSystemOperationRunnerTest() {}
43 virtual ~FileSystemOperationRunnerTest() {} 43 virtual ~FileSystemOperationRunnerTest() {}
44 44
45 virtual void SetUp() OVERRIDE { 45 virtual void SetUp() override {
46 ASSERT_TRUE(base_.CreateUniqueTempDir()); 46 ASSERT_TRUE(base_.CreateUniqueTempDir());
47 base::FilePath base_dir = base_.path(); 47 base::FilePath base_dir = base_.path();
48 file_system_context_ = 48 file_system_context_ =
49 CreateFileSystemContextForTesting(NULL, base_dir); 49 CreateFileSystemContextForTesting(NULL, base_dir);
50 } 50 }
51 51
52 virtual void TearDown() OVERRIDE { 52 virtual void TearDown() override {
53 file_system_context_ = NULL; 53 file_system_context_ = NULL;
54 base::RunLoop().RunUntilIdle(); 54 base::RunLoop().RunUntilIdle();
55 } 55 }
56 56
57 FileSystemURL URL(const std::string& path) { 57 FileSystemURL URL(const std::string& path) {
58 return file_system_context_->CreateCrackedFileSystemURL( 58 return file_system_context_->CreateCrackedFileSystemURL(
59 GURL("http://example.com"), 59 GURL("http://example.com"),
60 storage::kFileSystemTypeTemporary, 60 storage::kFileSystemTypeTemporary,
61 base::FilePath::FromUTF8Unsafe(path)); 61 base::FilePath::FromUTF8Unsafe(path));
62 } 62 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 base::File::Error cancel_status = base::File::FILE_ERROR_FAILED; 158 base::File::Error cancel_status = base::File::FILE_ERROR_FAILED;
159 operation_runner()->Cancel(kInvalidId, base::Bind(&GetCancelStatus, 159 operation_runner()->Cancel(kInvalidId, base::Bind(&GetCancelStatus,
160 &done, &cancel_done, 160 &done, &cancel_done,
161 &cancel_status)); 161 &cancel_status));
162 162
163 ASSERT_TRUE(cancel_done); 163 ASSERT_TRUE(cancel_done);
164 ASSERT_EQ(base::File::FILE_ERROR_INVALID_OPERATION, cancel_status); 164 ASSERT_EQ(base::File::FILE_ERROR_INVALID_OPERATION, cancel_status);
165 } 165 }
166 166
167 } // namespace content 167 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698