OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_temp_dir.h" |
| 10 |
| 11 class EnsureMediaDirectoriesExists { |
| 12 public: |
| 13 EnsureMediaDirectoriesExists(); |
| 14 |
| 15 int num_galleries() const { return num_galleries_; } |
| 16 |
| 17 private: |
| 18 void Init(); |
| 19 |
| 20 ScopedTempDir fake_dir_; |
| 21 |
| 22 int num_galleries_; |
| 23 |
| 24 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); |
| 25 }; |
| 26 |
| 27 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
OLD | NEW |