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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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/memory/ref_counted.h"
10 #include "base/scoped_temp_dir.h"
11
12 namespace extensions {
13 class Extension;
14 }
15
16 class Profile;
17
18 namespace chrome {
19
20 scoped_refptr<extensions::Extension> AddMediaGalleriesApp(
21 const std::string& name,
22 const std::vector<std::string>& media_galleries_permissions,
23 Profile* profile);
24
25 class EnsureMediaDirectoriesExists {
26 public:
27 EnsureMediaDirectoriesExists();
28
29 int num_galleries() const { return num_galleries_; }
30
31 private:
32 void Init();
33
34 ScopedTempDir fake_dir_;
35
36 int num_galleries_;
37
38 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists);
39 };
40
41 } // namespace chrome
42
43 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698