Index: chrome/browser/extensions/api/declarative/test_rules_registry.h |
diff --git a/chrome/browser/extensions/api/declarative/test_rules_registry.h b/chrome/browser/extensions/api/declarative/test_rules_registry.h |
deleted file mode 100644 |
index 7e0b691f5e0e821cf3515d603c9b0c55e2077e8e..0000000000000000000000000000000000000000 |
--- a/chrome/browser/extensions/api/declarative/test_rules_registry.h |
+++ /dev/null |
@@ -1,52 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#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 { |
- |
-// This is a trivial test RulesRegistry that can only store and retrieve rules. |
-class TestRulesRegistry : public RulesRegistry { |
- public: |
- TestRulesRegistry(content::BrowserThread::ID owner_thread, |
- const std::string& event_name, |
- const WebViewKey& webview_key); |
- TestRulesRegistry( |
- content::BrowserContext* browser_context, |
- const std::string& event_name, |
- content::BrowserThread::ID owner_thread, |
- RulesCacheDelegate* cache_delegate, |
- const WebViewKey& webview_key); |
- |
- // RulesRegistry implementation: |
- 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; |
- |
- // Sets the result message that will be returned by the next call of |
- // AddRulesImpl, RemoveRulesImpl and RemoveAllRulesImpl. |
- void SetResult(const std::string& result); |
- |
- protected: |
- virtual ~TestRulesRegistry(); |
- |
- private: |
- // The string that gets returned by the implementation functions of |
- // RulesRegistry. Defaults to "". |
- std::string result_; |
- |
- DISALLOW_COPY_AND_ASSIGN(TestRulesRegistry); |
-}; |
- |
-} // namespace extensions |
- |
-#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_TEST_RULES_REGISTRY_H__ |