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

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: Fix 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..f2063eee2425bccccce125385a27b13f99c96c3c
--- /dev/null
+++ b/chrome/browser/media_gallery/media_galleries_test_util.h
@@ -0,0 +1,27 @@
+// 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/scoped_temp_dir.h"
+
+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);
+};
+
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698