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

Side by Side Diff: chrome/browser/preferences_mock_mac.h

Issue 3855001: Move scoped_cftyperef from base to base/mac, use the new namespace, and name ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_ 5 #ifndef CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_
6 #define CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_ 6 #define CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "chrome/browser/preferences_mac.h" 10 #include "chrome/browser/preferences_mac.h"
11 11
12 // Mock preferences wrapper for testing code that interacts with CFPreferences. 12 // Mock preferences wrapper for testing code that interacts with CFPreferences.
13 class MockPreferences : public MacPreferences { 13 class MockPreferences : public MacPreferences {
14 public: 14 public:
15 MockPreferences(); 15 MockPreferences();
16 virtual ~MockPreferences(); 16 virtual ~MockPreferences();
17 17
18 virtual CFPropertyListRef CopyAppValue(CFStringRef key, 18 virtual CFPropertyListRef CopyAppValue(CFStringRef key,
19 CFStringRef applicationID); 19 CFStringRef applicationID);
20 20
21 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID); 21 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID);
22 22
23 // Adds a preference item with the given info to the test set. 23 // Adds a preference item with the given info to the test set.
24 void AddTestItem(CFStringRef key, CFPropertyListRef value, bool is_forced); 24 void AddTestItem(CFStringRef key, CFPropertyListRef value, bool is_forced);
25 25
26 private: 26 private:
27 scoped_cftyperef<CFMutableDictionaryRef> values_; 27 base::mac::ScopedCFTypeRef<CFMutableDictionaryRef> values_;
28 scoped_cftyperef<CFMutableSetRef> forced_; 28 base::mac::ScopedCFTypeRef<CFMutableSetRef> forced_;
29 }; 29 };
30 30
31 #endif // CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_ 31 #endif // CHROME_BROWSER_PREFERENCES_MOCK_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider_mac_unittest.cc ('k') | chrome/browser/renderer_host/backing_store_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698