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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_unittest.cc

Issue 2914433002: arc: Use the MIME type returned by the container to handle content URLs (Closed)
Patch Set: Comment drop. Created 3 years, 6 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/arc/fileapi/arc_file_system_operation_runner_unittest.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_unittest.cc b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_unittest.cc
index 0d04ab304bb65487822fd9a227045db1069420f3..d334a08ee94beece86520defcb94a3c731d87b79 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_unittest.cc
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_unittest.cc
@@ -79,6 +79,13 @@ class ArcFileSystemOperationRunnerTest : public testing::Test {
runner_->GetFileSize(
GURL(kUrl),
base::Bind([](int* counter, int64_t size) { ++*counter; }, counter));
+ runner_->GetMimeType(
+ GURL(kUrl),
+ base::Bind(
+ [](int* counter, const base::Optional<std::string>& mime_type) {
+ ++*counter;
+ },
+ counter));
runner_->OpenFileToRead(
GURL(kUrl),
base::Bind([](int* counter, mojo::ScopedHandle handle) { ++*counter; },
@@ -105,7 +112,7 @@ TEST_F(ArcFileSystemOperationRunnerTest, RunImmediately) {
CallSetShouldDefer(false);
CallAllFunctions(&counter);
base::RunLoop().RunUntilIdle();
- EXPECT_EQ(6, counter);
+ EXPECT_EQ(7, counter);
}
TEST_F(ArcFileSystemOperationRunnerTest, DeferAndRun) {
@@ -117,7 +124,7 @@ TEST_F(ArcFileSystemOperationRunnerTest, DeferAndRun) {
CallSetShouldDefer(false);
base::RunLoop().RunUntilIdle();
- EXPECT_EQ(6, counter);
+ EXPECT_EQ(7, counter);
}
TEST_F(ArcFileSystemOperationRunnerTest, DeferAndDiscard) {
@@ -140,7 +147,7 @@ TEST_F(ArcFileSystemOperationRunnerTest, FileInstanceUnavailable) {
CallSetShouldDefer(false);
CallAllFunctions(&counter);
base::RunLoop().RunUntilIdle();
- EXPECT_EQ(6, counter);
+ EXPECT_EQ(7, counter);
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698