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

Unified Diff: chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc

Issue 276313002: drive: Change FileCache::GetCacheEntry's return type to FileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/get_file_for_saving_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc
index e4c954df5a3d2acc1d7b483016ab5255eac512de..a017550d0c6e6a4eead22288a8ddac3da4ec1e5d 100644
--- a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc
@@ -92,7 +92,6 @@ TEST_F(GetFileForSavingOperationTest, GetFileForSaving_Exist) {
EXPECT_EQ(src_entry.resource_id(), entry->resource_id());
// Checks that it presents in cache and marked dirty.
- bool success = false;
FileCacheEntry cache_entry;
base::PostTaskAndReplyWithResult(
blocking_task_runner(),
@@ -101,9 +100,9 @@ TEST_F(GetFileForSavingOperationTest, GetFileForSaving_Exist) {
base::Unretained(cache()),
GetLocalId(drive_path),
&cache_entry),
- google_apis::test_util::CreateCopyResultCallback(&success));
+ google_apis::test_util::CreateCopyResultCallback(&error));
test_util::RunBlockingPoolTask();
- EXPECT_TRUE(success);
+ EXPECT_EQ(FILE_ERROR_OK, error);
EXPECT_TRUE(cache_entry.is_present());
EXPECT_TRUE(cache_entry.is_dirty());

Powered by Google App Engine
This is Rietveld 408576698