Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: chrome/browser/media_gallery/media_galleries_test_util.h

Issue 11027051: MediaFileSystemRegistry unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win compile Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698