| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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/test_blacklist.h" | 5 #include "chrome/browser/extensions/test_blacklist.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "chrome/browser/extensions/blacklist.h" | 13 #include "chrome/browser/extensions/blacklist.h" |
| 14 #include "chrome/browser/extensions/blacklist_state_fetcher.h" | 14 #include "chrome/browser/extensions/blacklist_state_fetcher.h" |
| 15 #include "chrome/browser/extensions/fake_safe_browsing_database_manager.h" | 15 #include "chrome/browser/extensions/fake_safe_browsing_database_manager.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 void Assign(BlacklistState *out, BlacklistState in) { | 21 void Assign(BlacklistState *out, BlacklistState in) { |
| 22 *out = in; | 22 *out = in; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 void TestBlacklist::EnableSafeBrowsing() { | 127 void TestBlacklist::EnableSafeBrowsing() { |
| 128 blacklist_db_->Enable(); | 128 blacklist_db_->Enable(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 void TestBlacklist::NotifyUpdate() { | 131 void TestBlacklist::NotifyUpdate() { |
| 132 blacklist_db_->NotifyUpdate(); | 132 blacklist_db_->NotifyUpdate(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace extensions | 135 } // namespace extensions |
| OLD | NEW |