| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_MOCK_CROS_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_MOCK_CROS_SETTINGS_H_ |
| 7 |
| 8 #include "base/singleton.h" |
| 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/cros_settings.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 class MockCrosSettings : public CrosSettings { |
| 15 public: |
| 16 virtual void Set(const std::wstring& path, Value* in_value); |
| 17 virtual bool Get(const std::wstring& path, Value** out_value) const; |
| 18 |
| 19 private: |
| 20 scoped_ptr<DictionaryValue> dict_; |
| 21 |
| 22 MockCrosSettings(); |
| 23 friend struct DefaultSingletonTraits<MockCrosSettings>; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(MockCrosSettings); |
| 26 }; |
| 27 |
| 28 } // namespace chromeos |
| 29 |
| 30 #endif // CHROME_BROWSER_CHROMEOS_MOCK_CROS_SETTINGS_H_ |
| OLD | NEW |