Index: chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc |
index 37956e6f8c191d5ad0024929c8d3135b71a3dce0..000921bdd21d3940fe4bfbc2c4e2668ff19bb4d2 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc |
+++ b/chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc |
@@ -46,6 +46,8 @@ class FileSystemProviderOperationsUnmountTest : public testing::Test { |
}; |
TEST_F(FileSystemProviderOperationsUnmountTest, Execute) { |
+ using extensions::api::file_system_provider::UnmountRequestedOptions; |
+ |
util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); |
util::StatusCallbackLog callback_log; |
@@ -66,16 +68,13 @@ TEST_F(FileSystemProviderOperationsUnmountTest, Execute) { |
base::ListValue* event_args = event->event_args.get(); |
ASSERT_EQ(1u, event_args->GetSize()); |
- base::DictionaryValue* options = NULL; |
- ASSERT_TRUE(event_args->GetDictionary(0, &options)); |
- |
- std::string event_file_system_id; |
- EXPECT_TRUE(options->GetString("fileSystemId", &event_file_system_id)); |
- EXPECT_EQ(kFileSystemId, event_file_system_id); |
+ const base::DictionaryValue* options_as_value = NULL; |
+ ASSERT_TRUE(event_args->GetDictionary(0, &options_as_value)); |
- int event_request_id = -1; |
- EXPECT_TRUE(options->GetInteger("requestId", &event_request_id)); |
- EXPECT_EQ(kRequestId, event_request_id); |
+ UnmountRequestedOptions options; |
+ ASSERT_TRUE(UnmountRequestedOptions::Populate(*options_as_value, &options)); |
+ EXPECT_EQ(kFileSystemId, options.file_system_id); |
+ EXPECT_EQ(kRequestId, options.request_id); |
} |
TEST_F(FileSystemProviderOperationsUnmountTest, Execute_NoListener) { |