| Index: chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc
|
| diff --git a/chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc
|
| index 9a40423918839ba27efc0841f83c7cb4f1983750..d09f65571a18bd6d280d2e10e4089faa1f0a0441 100644
|
| --- a/chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc
|
| +++ b/chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc
|
| @@ -49,6 +49,8 @@ class FileSystemProviderOperationsDeleteEntryTest : public testing::Test {
|
| };
|
|
|
| TEST_F(FileSystemProviderOperationsDeleteEntryTest, Execute) {
|
| + using extensions::api::file_system_provider::DeleteEntryRequestedOptions;
|
| +
|
| util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */);
|
| util::StatusCallbackLog callback_log;
|
|
|
| @@ -71,24 +73,16 @@ TEST_F(FileSystemProviderOperationsDeleteEntryTest, 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);
|
| -
|
| - int event_request_id = -1;
|
| - EXPECT_TRUE(options->GetInteger("requestId", &event_request_id));
|
| - EXPECT_EQ(kRequestId, event_request_id);
|
| -
|
| - std::string event_entry_path;
|
| - EXPECT_TRUE(options->GetString("entryPath", &event_entry_path));
|
| - EXPECT_EQ(kEntryPath, event_entry_path);
|
| + const base::DictionaryValue* options_as_value = NULL;
|
| + ASSERT_TRUE(event_args->GetDictionary(0, &options_as_value));
|
|
|
| - bool event_recursive;
|
| - EXPECT_TRUE(options->GetBoolean("recursive", &event_recursive));
|
| - EXPECT_TRUE(event_recursive);
|
| + DeleteEntryRequestedOptions options;
|
| + ASSERT_TRUE(
|
| + DeleteEntryRequestedOptions::Populate(*options_as_value, &options));
|
| + EXPECT_EQ(kFileSystemId, options.file_system_id);
|
| + EXPECT_EQ(kRequestId, options.request_id);
|
| + EXPECT_EQ(kEntryPath, options.entry_path);
|
| + EXPECT_TRUE(options.recursive);
|
| }
|
|
|
| TEST_F(FileSystemProviderOperationsDeleteEntryTest, Execute_NoListener) {
|
|
|