| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/file_system_provider/service.h" | 5 #include "chrome/browser/chromeos/file_system_provider/service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 18 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
| 19 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 19 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
| 20 #include "chrome/browser/chromeos/file_system_provider/observer.h" | 20 #include "chrome/browser/chromeos/file_system_provider/observer.h" |
| 21 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 21 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 22 #include "chrome/browser/chromeos/file_system_provider/registry_interface.h" | 22 #include "chrome/browser/chromeos/file_system_provider/registry_interface.h" |
| 23 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 23 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
| 24 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 24 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 25 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" | 25 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" |
| 26 #include "chrome/test/base/testing_browser_process.h" | 26 #include "chrome/test/base/testing_browser_process.h" |
| 27 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
| 28 #include "chrome/test/base/testing_profile_manager.h" | 28 #include "chrome/test/base/testing_profile_manager.h" |
| 29 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 29 #include "components/sync_preferences/testing_pref_service_syncable.h" |
| 30 #include "components/user_prefs/user_prefs.h" | 30 #include "components/user_prefs/user_prefs.h" |
| 31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
| 32 #include "extensions/browser/extension_registry.h" | 32 #include "extensions/browser/extension_registry.h" |
| 33 #include "extensions/common/extension.h" | 33 #include "extensions/common/extension.h" |
| 34 #include "extensions/common/manifest_constants.h" | 34 #include "extensions/common/manifest_constants.h" |
| 35 #include "storage/browser/fileapi/external_mount_points.h" | 35 #include "storage/browser/fileapi/external_mount_points.h" |
| 36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
| 37 | 37 |
| 38 namespace chromeos { | 38 namespace chromeos { |
| 39 namespace file_system_provider { | 39 namespace file_system_provider { |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 EXPECT_EQ(1u, observer.unmounts.size()); | 547 EXPECT_EQ(1u, observer.unmounts.size()); |
| 548 EXPECT_FALSE(registry_->file_system_info()); | 548 EXPECT_FALSE(registry_->file_system_info()); |
| 549 EXPECT_FALSE(registry_->watchers()); | 549 EXPECT_FALSE(registry_->watchers()); |
| 550 } | 550 } |
| 551 | 551 |
| 552 service_->RemoveObserver(&observer); | 552 service_->RemoveObserver(&observer); |
| 553 } | 553 } |
| 554 | 554 |
| 555 } // namespace file_system_provider | 555 } // namespace file_system_provider |
| 556 } // namespace chromeos | 556 } // namespace chromeos |
| OLD | NEW |