| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "chrome/browser/extensions/extension_prefs.h" | 6 #include "chrome/browser/extensions/extension_prefs.h" |
| 7 #include "chrome/browser/extensions/extension_prefs_unittest.h" | 7 #include "chrome/browser/extensions/extension_prefs_unittest.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
| 10 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 10 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 11 #include "chrome/browser/storage_monitor/test_storage_monitor.h" | |
| 12 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 namespace chrome { | 14 namespace chrome { |
| 16 | 15 |
| 17 namespace { | 16 namespace { |
| 18 | 17 |
| 19 void AddGalleryPermission(MediaGalleryPrefId gallery, | 18 void AddGalleryPermission(MediaGalleryPrefId gallery, |
| 20 bool has_access, | 19 bool has_access, |
| 21 std::vector<MediaGalleryPermission>* vector) { | 20 std::vector<MediaGalleryPermission>* vector) { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 std::string extension1_id_; | 128 std::string extension1_id_; |
| 130 std::string extension2_id_; | 129 std::string extension2_id_; |
| 131 std::string extension3_id_; | 130 std::string extension3_id_; |
| 132 std::string extension4_id_; | 131 std::string extension4_id_; |
| 133 | 132 |
| 134 std::vector<MediaGalleryPermission> extension1_expectation_; | 133 std::vector<MediaGalleryPermission> extension1_expectation_; |
| 135 std::vector<MediaGalleryPermission> extension2_expectation_; | 134 std::vector<MediaGalleryPermission> extension2_expectation_; |
| 136 std::vector<MediaGalleryPermission> extension3_expectation_; | 135 std::vector<MediaGalleryPermission> extension3_expectation_; |
| 137 std::vector<MediaGalleryPermission> extension4_expectation_; | 136 std::vector<MediaGalleryPermission> extension4_expectation_; |
| 138 | 137 |
| 139 test::TestStorageMonitor monitor_; | |
| 140 scoped_ptr<TestingProfile> profile_; | 138 scoped_ptr<TestingProfile> profile_; |
| 141 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; | 139 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; |
| 142 }; | 140 }; |
| 143 TEST_F(MediaGalleriesPermissionsTest, MediaGalleries) {} | 141 TEST_F(MediaGalleriesPermissionsTest, MediaGalleries) {} |
| 144 | 142 |
| 145 } // namespace chrome | 143 } // namespace chrome |
| OLD | NEW |