| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "extensions/browser/updater/extension_cache.h" | 12 #include "chrome/browser/extensions/updater/extension_cache.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 // Fake implementation of extensions ExtensionCache that can be used in tests. | 16 // Fake implementation of extensions ExtensionCache that can be used in tests. |
| 17 class ExtensionCacheFake : public ExtensionCache { | 17 class ExtensionCacheFake : public ExtensionCache { |
| 18 public: | 18 public: |
| 19 ExtensionCacheFake(); | 19 ExtensionCacheFake(); |
| 20 virtual ~ExtensionCacheFake(); | 20 virtual ~ExtensionCacheFake(); |
| 21 | 21 |
| 22 // Implementation of ExtensionCache. | 22 // Implementation of ExtensionCache. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Map of know extensions. | 39 // Map of know extensions. |
| 40 Map cache_; | 40 Map cache_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheFake); | 42 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheFake); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ | 47 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_FAKE_H_ |
| OLD | NEW |