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

Unified Diff: chrome/browser/download/download_path_reservation_tracker_unittest.cc

Issue 2117343007: Show download error message if sdcard is not available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/download/download_path_reservation_tracker_unittest.cc
diff --git a/chrome/browser/download/download_path_reservation_tracker_unittest.cc b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
index 7f6f2a5237df7af4ef81b35fdc9fa9280c168dc4..4f7272138d631a9f8d859211585e6fedd5b68514 100644
--- a/chrome/browser/download/download_path_reservation_tracker_unittest.cc
+++ b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
@@ -16,6 +16,7 @@
#include "build/build_config.h"
#include "chrome/browser/download/download_path_reservation_tracker.h"
#include "chrome/browser/download/download_target_determiner.h"
+#include "chrome/common/features.h"
#include "content/public/test/mock_download_item.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -501,7 +502,11 @@ TEST_F(DownloadPathReservationTrackerTest, UnwriteableDirectory) {
&verified);
// Verification fails.
EXPECT_FALSE(verified);
+#if BUILDFLAG(ANDROID_JAVA_UI)
+ EXPECT_TRUE(reserved_path.empty());
+#else
EXPECT_EQ(path.BaseName().value(), reserved_path.BaseName().value());
+#endif
}
SetDownloadItemState(item.get(), DownloadItem::COMPLETE);
}
« no previous file with comments | « chrome/browser/download/download_path_reservation_tracker.cc ('k') | chrome/browser/download/download_target_determiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698