Commit 8057899c authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Commands mountFakeUsb and mountFakeMtp: assert their Mount() works

These commands create then mount fake USB and MTP volumes for testing.
Add ASSERTs that Mount() calls on these fake volumes succeeds in test.

No change in behavior, no new tests.

Bug: 833834
Change-Id: I49c9a21b629cdb6285982d622e1020b6c16dee73
Reviewed-on: https://chromium-review.googlesource.com/1042005Reviewed-by: default avatarStuart Langley <slangley@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555900}
parent 45f1cc8f
...@@ -738,7 +738,7 @@ void FileManagerBrowserTestBase::OnCommand(const std::string& name, ...@@ -738,7 +738,7 @@ void FileManagerBrowserTestBase::OnCommand(const std::string& name,
usb_volume_.reset(new FakeTestVolume("fake-usb", usb_volume_.reset(new FakeTestVolume("fake-usb",
VOLUME_TYPE_REMOVABLE_DISK_PARTITION, VOLUME_TYPE_REMOVABLE_DISK_PARTITION,
chromeos::DEVICE_TYPE_USB)); chromeos::DEVICE_TYPE_USB));
usb_volume_->Mount(profile()); ASSERT_TRUE(usb_volume_->Mount(profile()));
return; return;
} }
...@@ -747,7 +747,7 @@ void FileManagerBrowserTestBase::OnCommand(const std::string& name, ...@@ -747,7 +747,7 @@ void FileManagerBrowserTestBase::OnCommand(const std::string& name,
chromeos::DEVICE_TYPE_UNKNOWN)); chromeos::DEVICE_TYPE_UNKNOWN));
ASSERT_TRUE(mtp_volume_->PrepareTestEntries(profile())); ASSERT_TRUE(mtp_volume_->PrepareTestEntries(profile()));
mtp_volume_->Mount(profile()); ASSERT_TRUE(mtp_volume_->Mount(profile()));
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment