OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 5 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/shell_dialogs/select_file_dialog.h" | 19 #include "ui/shell_dialogs/select_file_dialog.h" |
20 | 20 |
21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
22 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/prefs/testing_pref_service.h" | |
25 #include "chrome/browser/chromeos/file_manager/volume_manager.h" | 24 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
26 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 25 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
27 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 26 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
28 #include "chrome/test/base/testing_browser_process.h" | 27 #include "chrome/test/base/testing_browser_process.h" |
| 28 #include "components/prefs/testing_pref_service.h" |
29 #include "content/public/test/test_browser_thread_bundle.h" | 29 #include "content/public/test/test_browser_thread_bundle.h" |
30 #include "extensions/common/extension.h" | 30 #include "extensions/common/extension.h" |
31 #include "extensions/common/extension_builder.h" | 31 #include "extensions/common/extension_builder.h" |
32 #include "extensions/common/manifest.h" | 32 #include "extensions/common/manifest.h" |
33 #include "extensions/common/test_util.h" | 33 #include "extensions/common/test_util.h" |
34 #include "extensions/common/value_builder.h" | 34 #include "extensions/common/value_builder.h" |
35 #endif | 35 #endif |
36 | 36 |
37 using extensions::FileSystemChooseEntryFunction; | 37 using extensions::FileSystemChooseEntryFunction; |
38 using extensions::api::file_system::AcceptOption; | 38 using extensions::api::file_system::AcceptOption; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 base::RunLoop().RunUntilIdle(); | 435 base::RunLoop().RunUntilIdle(); |
436 | 436 |
437 EXPECT_EQ(1, delegate.show_dialog_counter()); | 437 EXPECT_EQ(1, delegate.show_dialog_counter()); |
438 EXPECT_EQ(0, delegate.show_notification_counter()); | 438 EXPECT_EQ(0, delegate.show_notification_counter()); |
439 EXPECT_EQ(ConsentProvider::CONSENT_REJECTED, result); | 439 EXPECT_EQ(ConsentProvider::CONSENT_REJECTED, result); |
440 } | 440 } |
441 } | 441 } |
442 #endif | 442 #endif |
443 | 443 |
444 } // namespace extensions | 444 } // namespace extensions |
OLD | NEW |