Index: chrome/browser/media_gallery/media_galleries_test_util.h |
diff --git a/chrome/browser/media_gallery/media_galleries_test_util.h b/chrome/browser/media_gallery/media_galleries_test_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63bd58292fb278f29d52596871b111d87df6a863 |
--- /dev/null |
+++ b/chrome/browser/media_gallery/media_galleries_test_util.h |
@@ -0,0 +1,43 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
+#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/scoped_temp_dir.h" |
+ |
+namespace extensions { |
+class Extension; |
+} |
+ |
+class Profile; |
+ |
+namespace chrome { |
+ |
+scoped_refptr<extensions::Extension> AddMediaGalleriesApp( |
+ const std::string& name, |
+ const std::vector<std::string>& media_galleries_permissions, |
+ Profile* profile); |
+ |
+class EnsureMediaDirectoriesExists { |
+ public: |
+ EnsureMediaDirectoriesExists(); |
+ |
+ int num_galleries() const { return num_galleries_; } |
+ |
+ private: |
+ void Init(); |
+ |
+ ScopedTempDir fake_dir_; |
+ |
+ int num_galleries_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |