| 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 // MediaGalleriesPreferences unit tests. | 5 // MediaGalleriesPreferences unit tests. |
| 6 | 6 |
| 7 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 7 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/media_galleries/media_file_system_registry.h" | 24 #include "chrome/browser/media_galleries/media_file_system_registry.h" |
| 25 #include "chrome/browser/media_galleries/media_galleries_test_util.h" | 25 #include "chrome/browser/media_galleries/media_galleries_test_util.h" |
| 26 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
| 27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
| 28 #include "chrome/grit/generated_resources.h" | 28 #include "chrome/grit/generated_resources.h" |
| 29 #include "chrome/test/base/testing_profile.h" | 29 #include "chrome/test/base/testing_profile.h" |
| 30 #include "components/prefs/scoped_user_pref_update.h" | 30 #include "components/prefs/scoped_user_pref_update.h" |
| 31 #include "components/storage_monitor/media_storage_util.h" | 31 #include "components/storage_monitor/media_storage_util.h" |
| 32 #include "components/storage_monitor/storage_monitor.h" | 32 #include "components/storage_monitor/storage_monitor.h" |
| 33 #include "components/storage_monitor/test_storage_monitor.h" | 33 #include "components/storage_monitor/test_storage_monitor.h" |
| 34 #include "components/sync/api/string_ordinal.h" |
| 34 #include "content/public/test/test_browser_thread_bundle.h" | 35 #include "content/public/test/test_browser_thread_bundle.h" |
| 35 #include "extensions/browser/extension_system.h" | 36 #include "extensions/browser/extension_system.h" |
| 36 #include "extensions/common/extension.h" | 37 #include "extensions/common/extension.h" |
| 37 #include "extensions/common/manifest_handlers/background_info.h" | 38 #include "extensions/common/manifest_handlers/background_info.h" |
| 38 #include "extensions/common/permissions/media_galleries_permission.h" | 39 #include "extensions/common/permissions/media_galleries_permission.h" |
| 39 #include "sync/api/string_ordinal.h" | |
| 40 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
| 41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
| 42 | 42 |
| 43 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
| 44 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" | 44 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" |
| 45 #include "chrome/browser/chromeos/settings/cros_settings.h" | 45 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 46 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 46 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 using base::ASCIIToUTF16; | 49 using base::ASCIIToUTF16; |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 MediaGalleryPrefInfo::DefaultGalleryType::kNotDefault) { | 1527 MediaGalleryPrefInfo::DefaultGalleryType::kNotDefault) { |
| 1528 found_user_added = true; | 1528 found_user_added = true; |
| 1529 } | 1529 } |
| 1530 } | 1530 } |
| 1531 | 1531 |
| 1532 EXPECT_TRUE(found_music); | 1532 EXPECT_TRUE(found_music); |
| 1533 EXPECT_TRUE(found_pictures); | 1533 EXPECT_TRUE(found_pictures); |
| 1534 EXPECT_TRUE(found_videos); | 1534 EXPECT_TRUE(found_videos); |
| 1535 EXPECT_TRUE(found_user_added); | 1535 EXPECT_TRUE(found_user_added); |
| 1536 } | 1536 } |
| OLD | NEW |