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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_change_tracker_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_change_tracker.h" 5 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 35
36 class LocalFileChangeTrackerTest : public testing::Test { 36 class LocalFileChangeTrackerTest : public testing::Test {
37 public: 37 public:
38 LocalFileChangeTrackerTest() 38 LocalFileChangeTrackerTest()
39 : in_memory_env_(leveldb::NewMemEnv(leveldb::Env::Default())), 39 : in_memory_env_(leveldb::NewMemEnv(leveldb::Env::Default())),
40 file_system_(GURL("http://example.com"), 40 file_system_(GURL("http://example.com"),
41 in_memory_env_.get(), 41 in_memory_env_.get(),
42 base::ThreadTaskRunnerHandle::Get().get(), 42 base::ThreadTaskRunnerHandle::Get().get(),
43 base::ThreadTaskRunnerHandle::Get().get()) {} 43 base::ThreadTaskRunnerHandle::Get().get()) {}
44 44
45 virtual void SetUp() OVERRIDE { 45 virtual void SetUp() override {
46 file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED); 46 file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
47 47
48 ASSERT_TRUE(base_dir_.CreateUniqueTempDir()); 48 ASSERT_TRUE(base_dir_.CreateUniqueTempDir());
49 sync_context_ = 49 sync_context_ =
50 new LocalFileSyncContext(base_dir_.path(), 50 new LocalFileSyncContext(base_dir_.path(),
51 in_memory_env_.get(), 51 in_memory_env_.get(),
52 base::ThreadTaskRunnerHandle::Get().get(), 52 base::ThreadTaskRunnerHandle::Get().get(),
53 base::ThreadTaskRunnerHandle::Get().get()); 53 base::ThreadTaskRunnerHandle::Get().get());
54 ASSERT_EQ( 54 ASSERT_EQ(
55 sync_file_system::SYNC_STATUS_OK, 55 sync_file_system::SYNC_STATUS_OK,
56 file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); 56 file_system_.MaybeInitializeFileSystemContext(sync_context_.get()));
57 } 57 }
58 58
59 virtual void TearDown() OVERRIDE { 59 virtual void TearDown() override {
60 if (sync_context_.get()) 60 if (sync_context_.get())
61 sync_context_->ShutdownOnUIThread(); 61 sync_context_->ShutdownOnUIThread();
62 sync_context_ = nullptr; 62 sync_context_ = nullptr;
63 63
64 message_loop_.RunUntilIdle(); 64 message_loop_.RunUntilIdle();
65 file_system_.TearDown(); 65 file_system_.TearDown();
66 // Make sure we don't leave the external filesystem. 66 // Make sure we don't leave the external filesystem.
67 // (CannedSyncableFileSystem::TearDown does not do this as there may be 67 // (CannedSyncableFileSystem::TearDown does not do this as there may be
68 // multiple syncable file systems registered for the name) 68 // multiple syncable file systems registered for the name)
69 RevokeSyncableFileSystem(); 69 RevokeSyncableFileSystem();
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 // Make sure they're gone from the database too. 706 // Make sure they're gone from the database too.
707 DropChangesInTracker(); 707 DropChangesInTracker();
708 RestoreChangesFromTrackerDB(); 708 RestoreChangesFromTrackerDB();
709 709
710 GetAllChangedURLs(&urls); 710 GetAllChangedURLs(&urls);
711 EXPECT_TRUE(urls.empty()); 711 EXPECT_TRUE(urls.empty());
712 } 712 }
713 713
714 } // namespace sync_file_system 714 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698