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 GetFakeITunesRootPath() const; |
| 55 base::FilePath GetFakeIPhotoRootPath() const; |
| 56 #endif |
| 57 |
53 private: | 58 private: |
54 void Init(); | 59 void Init(); |
55 | 60 |
56 base::ScopedTempDir fake_dir_; | 61 base::ScopedTempDir fake_dir_; |
57 | 62 |
58 int num_galleries_; | 63 int num_galleries_; |
59 | 64 |
60 scoped_ptr<base::ScopedPathOverride> app_data_override_; | 65 scoped_ptr<base::ScopedPathOverride> app_data_override_; |
61 scoped_ptr<base::ScopedPathOverride> music_override_; | 66 scoped_ptr<base::ScopedPathOverride> music_override_; |
62 scoped_ptr<base::ScopedPathOverride> pictures_override_; | 67 scoped_ptr<base::ScopedPathOverride> pictures_override_; |
63 scoped_ptr<base::ScopedPathOverride> video_override_; | 68 scoped_ptr<base::ScopedPathOverride> video_override_; |
64 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
65 scoped_ptr<base::ScopedPathOverride> local_app_data_override_; | 70 scoped_ptr<base::ScopedPathOverride> local_app_data_override_; |
66 | 71 |
67 registry_util::RegistryOverrideManager registry_override_; | 72 registry_util::RegistryOverrideManager registry_override_; |
68 #endif | 73 #endif |
69 #if defined(OS_MACOSX) | 74 #if defined(OS_MACOSX) |
70 scoped_ptr<MockPreferences> mac_preferences_; | 75 scoped_ptr<MockPreferences> mac_preferences_; |
71 #endif | 76 #endif |
72 | 77 |
73 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); | 78 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); |
74 }; | 79 }; |
75 | 80 |
76 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ | 81 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_TEST_UTIL_H_ |
OLD | NEW |