#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__
#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__
#include "chrome/browser/extensions/api/declarative/rules_registry.h"
namespace extensions {
class TestRulesRegistry : public RulesRegistry {
public:
TestRulesRegistry(content::BrowserThread::ID owner_thread,
const std::string& event_name,
const WebViewKey& webview_key);
TestRulesRegistry(
Profile* profile,
const std::string& event_name,
content::BrowserThread::ID owner_thread,
RulesCacheDelegate* cache_delegate,
const WebViewKey& webview_key);
virtual std::string AddRulesImpl(
const std::string& extension_id,
const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) OVERRIDE;
virtual std::string RemoveRulesImpl(
const std::string& extension_id,
const std::vector<std::string>& rule_identifiers) OVERRIDE;
virtual std::string RemoveAllRulesImpl(
const std::string& extension_id) OVERRIDE;
void SetResult(const std::string& result);
protected:
virtual ~TestRulesRegistry();
private:
std::string result_;
DISALLOW_COPY_AND_ASSIGN(TestRulesRegistry);
};
}
#endif