| 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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 base::FilePath GetFakeAppDataPath() const; | 44 base::FilePath GetFakeAppDataPath() const; |
| 45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 46 base::FilePath GetFakeLocalAppDataPath() const; | 46 base::FilePath GetFakeLocalAppDataPath() const; |
| 47 #endif | 47 #endif |
| 48 #if defined(OS_WIN) || defined(OS_MACOSX) | 48 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 49 void SetCustomPicasaAppDataPath(const base::FilePath& path); | 49 void SetCustomPicasaAppDataPath(const base::FilePath& path); |
| 50 base::FilePath GetFakePicasaFoldersRootPath() const; | 50 base::FilePath GetFakePicasaFoldersRootPath() const; |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 #if defined(OS_MACOSX) |
| 54 base::FilePath GetFakeIPhotoRootPath() const; |
| 55 #endif |
| 56 |
| 53 private: | 57 private: |
| 54 void Init(); | 58 void Init(); |
| 55 | 59 |
| 56 base::ScopedTempDir fake_dir_; | 60 base::ScopedTempDir fake_dir_; |
| 57 | 61 |
| 58 int num_galleries_; | 62 int num_galleries_; |
| 59 | 63 |
| 60 scoped_ptr<base::ScopedPathOverride> app_data_override_; | 64 scoped_ptr<base::ScopedPathOverride> app_data_override_; |
| 61 scoped_ptr<base::ScopedPathOverride> music_override_; | 65 scoped_ptr<base::ScopedPathOverride> music_override_; |
| 62 scoped_ptr<base::ScopedPathOverride> pictures_override_; | 66 scoped_ptr<base::ScopedPathOverride> pictures_override_; |
| 63 scoped_ptr<base::ScopedPathOverride> video_override_; | 67 scoped_ptr<base::ScopedPathOverride> video_override_; |
| 64 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
| 65 scoped_ptr<base::ScopedPathOverride> local_app_data_override_; | 69 scoped_ptr<base::ScopedPathOverride> local_app_data_override_; |
| 66 | 70 |
| 67 registry_util::RegistryOverrideManager registry_override_; | 71 registry_util::RegistryOverrideManager registry_override_; |
| 68 #endif | 72 #endif |
| 69 #if defined(OS_MACOSX) | 73 #if defined(OS_MACOSX) |
| 70 scoped_ptr<MockPreferences> mac_preferences_; | 74 scoped_ptr<MockPreferences> mac_preferences_; |
| 71 #endif | 75 #endif |
| 72 | 76 |
| 73 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); | 77 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ | 80 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ |
| OLD | NEW |