OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" | 5 #include "extensions/browser/api/declarative/rules_registry_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
10 #include "content/public/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.h" |
11 #include "extensions/browser/api/declarative/test_rules_registry.h" | 11 #include "extensions/browser/api/declarative/test_rules_registry.h" |
12 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" | 12 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 RulesRegistryService registry_service(&profile); | 155 RulesRegistryService registry_service(&profile); |
156 RulesRegistry* registry = | 156 RulesRegistry* registry = |
157 registry_service.GetRulesRegistry( | 157 registry_service.GetRulesRegistry( |
158 key, | 158 key, |
159 declarative_webrequest_constants::kOnRequest).get(); | 159 declarative_webrequest_constants::kOnRequest).get(); |
160 EXPECT_TRUE(registry); | 160 EXPECT_TRUE(registry); |
161 EXPECT_FALSE(registry->rules_cache_delegate_for_testing()); | 161 EXPECT_FALSE(registry->rules_cache_delegate_for_testing()); |
162 } | 162 } |
163 | 163 |
164 } // namespace extensions | 164 } // namespace extensions |
OLD | NEW |