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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc

Issue 666143002: Standardize usage of virtual/override/final in chrome/browser/sync_file_system/ (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <algorithm> 5 #include <algorithm>
6 #include <stack> 6 #include <stack>
7 7
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 local_sync_service_->Shutdown(); 148 local_sync_service_->Shutdown();
149 149
150 fake_drive_service_helper_.reset(); 150 fake_drive_service_helper_.reset();
151 local_sync_service_.reset(); 151 local_sync_service_.reset();
152 remote_sync_service_.reset(); 152 remote_sync_service_.reset();
153 153
154 content::RunAllBlockingPoolTasksUntilIdle(); 154 content::RunAllBlockingPoolTasksUntilIdle();
155 RevokeSyncableFileSystem(); 155 RevokeSyncableFileSystem();
156 } 156 }
157 157
158 virtual void OnRemoteChangeQueueUpdated(int64 pending_changes_hint) override { 158 void OnRemoteChangeQueueUpdated(int64 pending_changes_hint) override {
159 pending_remote_changes_ = pending_changes_hint; 159 pending_remote_changes_ = pending_changes_hint;
160 } 160 }
161 161
162 virtual void OnLocalChangeAvailable(int64 pending_changes_hint) override { 162 void OnLocalChangeAvailable(int64 pending_changes_hint) override {
163 pending_local_changes_ = pending_changes_hint; 163 pending_local_changes_ = pending_changes_hint;
164 } 164 }
165 165
166 protected: 166 protected:
167 storage::FileSystemURL CreateURL(const std::string& app_id, 167 storage::FileSystemURL CreateURL(const std::string& app_id,
168 const base::FilePath::StringType& path) { 168 const base::FilePath::StringType& path) {
169 return CreateURL(app_id, base::FilePath(path)); 169 return CreateURL(app_id, base::FilePath(path));
170 } 170 }
171 171
172 storage::FileSystemURL CreateURL(const std::string& app_id, 172 storage::FileSystemURL CreateURL(const std::string& app_id,
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 1720
1721 EXPECT_EQ(1u, CountApp()); 1721 EXPECT_EQ(1u, CountApp());
1722 EXPECT_EQ(1u, CountLocalFile(app_id)); 1722 EXPECT_EQ(1u, CountLocalFile(app_id));
1723 1723
1724 EXPECT_EQ(2u, CountMetadata()); 1724 EXPECT_EQ(2u, CountMetadata());
1725 EXPECT_EQ(2u, CountTracker()); 1725 EXPECT_EQ(2u, CountTracker());
1726 } 1726 }
1727 1727
1728 } // namespace drive_backend 1728 } // namespace drive_backend
1729 } // namespace sync_file_system 1729 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698