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

Unified Diff: chrome/browser/chromeos/drive/file_system/download_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/download_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
index cb038202551e0bdad6814edb33f8189985f42fd9..2429a90cf9cabbb2ddf4c5b957ac832453072325 100644
--- a/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
@@ -145,7 +145,6 @@ TEST_F(DownloadOperationTest,
// The cache entry should be removed in order to free up space.
FileCacheEntry cache_entry;
- bool result = true;
base::PostTaskAndReplyWithResult(
blocking_task_runner(),
FROM_HERE,
@@ -153,9 +152,9 @@ TEST_F(DownloadOperationTest,
base::Unretained(cache()),
"<id>",
&cache_entry),
- google_apis::test_util::CreateCopyResultCallback(&result));
+ google_apis::test_util::CreateCopyResultCallback(&error));
test_util::RunBlockingPoolTask();
- ASSERT_FALSE(result);
+ EXPECT_EQ(FILE_ERROR_NOT_FOUND, error);
}
TEST_F(DownloadOperationTest,

Powered by Google App Engine
This is Rietveld 408576698