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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm

Issue 13524003: [StorageMonitor] Remove GetStorageSize. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Compiling... Created 7 years, 8 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/storage_monitor/storage_monitor_mac_unittest.mm
diff --git a/chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm b/chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm
index 300acadf3de9b2b3a41fa99aec33326259800c9f..6a890e8674b048f0c57bfb57db046d13eb3fcb5b 100644
--- a/chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm
+++ b/chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm
@@ -168,20 +168,12 @@ TEST_F(StorageMonitorMacTest, GetStorageInfo) {
EXPECT_EQ(device_id_, info.device_id);
EXPECT_EQ(ASCIIToUTF16("977 KB Test Display Name"), info.name);
EXPECT_EQ(mount_point_.value(), info.location);
- EXPECT_EQ(1000000ULL, info.total_size_in_bytes);
+ EXPECT_EQ(kTestSize, info.total_size_in_bytes);
EXPECT_FALSE(monitor_->GetStorageInfoForPath(
base::FilePath("/non/matching/path"), &info));
}
-TEST_F(StorageMonitorMacTest, GetStorageSize) {
- UpdateDisk(disk_info_, StorageMonitorMac::UPDATE_DEVICE_ADDED);
- EXPECT_EQ(1, mock_storage_observer_->attach_calls());
-
- EXPECT_EQ(kTestSize,
- monitor_->GetStorageSize("/unused_test_directory"));
-}
-
// Test that mounting a DMG doesn't send a notification.
TEST_F(StorageMonitorMacTest, DMG) {
StorageInfo info = CreateStorageInfo(
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_mac.mm ('k') | chrome/browser/storage_monitor/storage_monitor_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698