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

Unified Diff: chrome/browser/chromeos/drive/file_system_unittest.cc

Issue 23625013: Remove drive::FileSystemInterface::Initialize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_system_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system_unittest.cc b/chrome/browser/chromeos/drive/file_system_unittest.cc
index 87d71f8247bf47d9bb84a37da5e6f25b1c616d0d..b94e08a28be72973761d48849576c9d50bd06a5d 100644
--- a/chrome/browser/chromeos/drive/file_system_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system_unittest.cc
@@ -118,6 +118,7 @@ class FileSystemTest : public testing::Test {
resource_metadata_.reset(new internal::ResourceMetadata(
metadata_storage_.get(), base::MessageLoopProxy::current()));
+ ASSERT_EQ(FILE_ERROR_OK, resource_metadata_->Initialize());
const base::FilePath temp_file_dir = temp_dir_.path().AppendASCII("tmp");
ASSERT_TRUE(file_util::CreateDirectory(temp_file_dir));
@@ -130,13 +131,10 @@ class FileSystemTest : public testing::Test {
base::MessageLoopProxy::current().get(),
temp_file_dir));
file_system_->AddObserver(mock_directory_observer_.get());
- file_system_->Initialize();
// Disable delaying so that the sync starts immediately.
file_system_->sync_client_for_testing()->set_delay_for_testing(
base::TimeDelta::FromSeconds(0));
-
- ASSERT_EQ(FILE_ERROR_OK, resource_metadata_->Initialize());
}
// Loads the full resource list via FakeDriveService.

Powered by Google App Engine
This is Rietveld 408576698