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

Side by Side Diff: chrome/browser/chromeos/drive/resource_metadata_unittest.cc

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/chromeos/drive/resource_metadata.h" 5 #include "chrome/browser/chromeos/drive/resource_metadata.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 ASSERT_EQ(FILE_ERROR_OK, 128 ASSERT_EQ(FILE_ERROR_OK,
129 resource_metadata->SetLargestChangestamp(kTestChangestamp)); 129 resource_metadata->SetLargestChangestamp(kTestChangestamp));
130 } 130 }
131 131
132 } // namespace 132 } // namespace
133 133
134 // Tests for methods running on the blocking task runner. 134 // Tests for methods running on the blocking task runner.
135 class ResourceMetadataTest : public testing::Test { 135 class ResourceMetadataTest : public testing::Test {
136 protected: 136 protected:
137 virtual void SetUp() OVERRIDE { 137 virtual void SetUp() override {
138 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 138 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
139 139
140 metadata_storage_.reset(new ResourceMetadataStorage( 140 metadata_storage_.reset(new ResourceMetadataStorage(
141 temp_dir_.path(), base::MessageLoopProxy::current().get())); 141 temp_dir_.path(), base::MessageLoopProxy::current().get()));
142 ASSERT_TRUE(metadata_storage_->Initialize()); 142 ASSERT_TRUE(metadata_storage_->Initialize());
143 143
144 fake_free_disk_space_getter_.reset(new FakeFreeDiskSpaceGetter); 144 fake_free_disk_space_getter_.reset(new FakeFreeDiskSpaceGetter);
145 cache_.reset(new FileCache(metadata_storage_.get(), 145 cache_.reset(new FileCache(metadata_storage_.get(),
146 temp_dir_.path(), 146 temp_dir_.path(),
147 base::MessageLoopProxy::current().get(), 147 base::MessageLoopProxy::current().get(),
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 698
699 // The "trash" directory should be empty. 699 // The "trash" directory should be empty.
700 ASSERT_EQ(FILE_ERROR_OK, 700 ASSERT_EQ(FILE_ERROR_OK,
701 resource_metadata_->ReadDirectoryByPath( 701 resource_metadata_->ReadDirectoryByPath(
702 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); 702 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries));
703 EXPECT_TRUE(entries.empty()); 703 EXPECT_TRUE(entries.empty());
704 } 704 }
705 705
706 } // namespace internal 706 } // namespace internal
707 } // namespace drive 707 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698