| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TEST_BLACKLIST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chrome/browser/extensions/blacklist.h" | 11 #include "chrome/browser/extensions/blacklist.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 // A wrapper for an extensions::Blacklist that provides functionality for | 15 // A wrapper for an extensions::Blacklist that provides functionality for |
| 16 // testing. | 16 // testing. |
| 17 class TestBlacklist { | 17 class TestBlacklist { |
| 18 public: | 18 public: |
| 19 explicit TestBlacklist(Blacklist* blacklist); | 19 explicit TestBlacklist(Blacklist* blacklist); |
| 20 | 20 |
| 21 Blacklist* blacklist() { return blacklist_; } | 21 Blacklist* blacklist() { return blacklist_; } |
| 22 | 22 |
| 23 Blacklist::BlacklistState GetBlacklistState(const std::string& extension_id); | 23 BlacklistState GetBlacklistState(const std::string& extension_id); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 Blacklist* blacklist_; | 26 Blacklist* blacklist_; |
| 27 | 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(TestBlacklist); | 28 DISALLOW_COPY_AND_ASSIGN(TestBlacklist); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace extensions | 31 } // namespace extensions |
| 32 | 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ | 33 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ |
| OLD | NEW |