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

Side by Side Diff: sync/syncable/directory_backing_store_unittest.cc

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 3822 matching lines...) Expand 10 before | Expand all | Expand 10 after
3833 namespace { 3833 namespace {
3834 3834
3835 class OnDiskDirectoryBackingStoreForTest : public OnDiskDirectoryBackingStore { 3835 class OnDiskDirectoryBackingStoreForTest : public OnDiskDirectoryBackingStore {
3836 public: 3836 public:
3837 OnDiskDirectoryBackingStoreForTest(const std::string& dir_name, 3837 OnDiskDirectoryBackingStoreForTest(const std::string& dir_name,
3838 const base::FilePath& backing_filepath); 3838 const base::FilePath& backing_filepath);
3839 virtual ~OnDiskDirectoryBackingStoreForTest(); 3839 virtual ~OnDiskDirectoryBackingStoreForTest();
3840 bool DidFailFirstOpenAttempt(); 3840 bool DidFailFirstOpenAttempt();
3841 3841
3842 protected: 3842 protected:
3843 virtual void ReportFirstTryOpenFailure() OVERRIDE; 3843 virtual void ReportFirstTryOpenFailure() override;
3844 3844
3845 private: 3845 private:
3846 bool first_open_failed_; 3846 bool first_open_failed_;
3847 }; 3847 };
3848 3848
3849 OnDiskDirectoryBackingStoreForTest::OnDiskDirectoryBackingStoreForTest( 3849 OnDiskDirectoryBackingStoreForTest::OnDiskDirectoryBackingStoreForTest(
3850 const std::string& dir_name, 3850 const std::string& dir_name,
3851 const base::FilePath& backing_filepath) : 3851 const base::FilePath& backing_filepath) :
3852 OnDiskDirectoryBackingStore(dir_name, backing_filepath), 3852 OnDiskDirectoryBackingStore(dir_name, backing_filepath),
3853 first_open_failed_(false) { } 3853 first_open_failed_(false) { }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
3950 const std::string& guid2 = TestDirectoryBackingStore::GenerateCacheGUID(); 3950 const std::string& guid2 = TestDirectoryBackingStore::GenerateCacheGUID();
3951 EXPECT_EQ(24U, guid1.size()); 3951 EXPECT_EQ(24U, guid1.size());
3952 EXPECT_EQ(24U, guid2.size()); 3952 EXPECT_EQ(24U, guid2.size());
3953 // In theory this test can fail, but it won't before the universe 3953 // In theory this test can fail, but it won't before the universe
3954 // dies of heat death. 3954 // dies of heat death.
3955 EXPECT_NE(guid1, guid2); 3955 EXPECT_NE(guid1, guid2);
3956 } 3956 }
3957 3957
3958 } // namespace syncable 3958 } // namespace syncable
3959 } // namespace syncer 3959 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/deferred_on_disk_directory_backing_store_unittest.cc ('k') | sync/syncable/directory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698