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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 "chrome/browser/sync_file_system/local/local_file_sync_context.h" 5 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 protected: 53 protected:
54 LocalFileSyncContextTest() 54 LocalFileSyncContextTest()
55 : thread_bundle_( 55 : thread_bundle_(
56 content::TestBrowserThreadBundle::REAL_FILE_THREAD | 56 content::TestBrowserThreadBundle::REAL_FILE_THREAD |
57 content::TestBrowserThreadBundle::REAL_IO_THREAD), 57 content::TestBrowserThreadBundle::REAL_IO_THREAD),
58 status_(SYNC_FILE_ERROR_FAILED), 58 status_(SYNC_FILE_ERROR_FAILED),
59 file_error_(base::File::FILE_ERROR_FAILED), 59 file_error_(base::File::FILE_ERROR_FAILED),
60 async_modify_finished_(false), 60 async_modify_finished_(false),
61 has_inflight_prepare_for_sync_(false) {} 61 has_inflight_prepare_for_sync_(false) {}
62 62
63 virtual void SetUp() OVERRIDE { 63 virtual void SetUp() override {
64 RegisterSyncableFileSystem(); 64 RegisterSyncableFileSystem();
65 ASSERT_TRUE(dir_.CreateUniqueTempDir()); 65 ASSERT_TRUE(dir_.CreateUniqueTempDir());
66 in_memory_env_.reset(leveldb::NewMemEnv(leveldb::Env::Default())); 66 in_memory_env_.reset(leveldb::NewMemEnv(leveldb::Env::Default()));
67 67
68 ui_task_runner_ = base::MessageLoop::current()->message_loop_proxy(); 68 ui_task_runner_ = base::MessageLoop::current()->message_loop_proxy();
69 io_task_runner_ = BrowserThread::GetMessageLoopProxyForThread( 69 io_task_runner_ = BrowserThread::GetMessageLoopProxyForThread(
70 BrowserThread::IO); 70 BrowserThread::IO);
71 file_task_runner_ = BrowserThread::GetMessageLoopProxyForThread( 71 file_task_runner_ = BrowserThread::GetMessageLoopProxyForThread(
72 BrowserThread::IO); 72 BrowserThread::IO);
73 } 73 }
74 74
75 virtual void TearDown() OVERRIDE { 75 virtual void TearDown() override {
76 RevokeSyncableFileSystem(); 76 RevokeSyncableFileSystem();
77 } 77 }
78 78
79 void StartPrepareForSync(FileSystemContext* file_system_context, 79 void StartPrepareForSync(FileSystemContext* file_system_context,
80 const FileSystemURL& url, 80 const FileSystemURL& url,
81 LocalFileSyncContext::SyncMode sync_mode, 81 LocalFileSyncContext::SyncMode sync_mode,
82 SyncFileMetadata* metadata, 82 SyncFileMetadata* metadata,
83 FileChangeList* changes, 83 FileChangeList* changes,
84 storage::ScopedFile* snapshot) { 84 storage::ScopedFile* snapshot) {
85 ASSERT_TRUE(changes != nullptr); 85 ASSERT_TRUE(changes != nullptr);
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 950
951 // Make sure kDir and kFile are created by ApplyRemoteChange. 951 // Make sure kDir and kFile are created by ApplyRemoteChange.
952 EXPECT_EQ(base::File::FILE_OK, file_system.FileExists(kFile)); 952 EXPECT_EQ(base::File::FILE_OK, file_system.FileExists(kFile));
953 EXPECT_EQ(base::File::FILE_OK, file_system.DirectoryExists(kDir)); 953 EXPECT_EQ(base::File::FILE_OK, file_system.DirectoryExists(kDir));
954 954
955 sync_context_->ShutdownOnUIThread(); 955 sync_context_->ShutdownOnUIThread();
956 file_system.TearDown(); 956 file_system.TearDown();
957 } 957 }
958 958
959 } // namespace sync_file_system 959 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698