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 12 namespace extensions { 13 14 class Blacklist; 15 16 // A wrapper for an extensions::Blacklist that provides functionality for 17 // testing. 18 class TestBlacklist { 19 public: 20 explicit TestBlacklist(Blacklist* blacklist); 21 22 Blacklist* blacklist() { return blacklist_; } 23 24 bool IsBlacklisted(const std::string& extension_id); 25 26 private: 27 Blacklist* blacklist_; 28 29 DISALLOW_COPY_AND_ASSIGN(TestBlacklist); 30 }; 31 32 } // namespace extensions 33 34 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ 35