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