| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/blacklist_state_fetcher.h" |
| 5 #include "base/bind.h" | 6 #include "base/bind.h" |
| 6 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 7 #include "chrome/browser/extensions/blacklist_state_fetcher.h" | |
| 8 #include "chrome/browser/extensions/test_blacklist_state_fetcher.h" | 8 #include "chrome/browser/extensions/test_blacklist_state_fetcher.h" |
| 9 #include "chrome/common/safe_browsing/crx_info.pb.h" | 9 #include "components/safe_browsing/common/crx_info.pb.h" |
| 10 #include "content/public/test/test_browser_thread_bundle.h" | 10 #include "content/public/test/test_browser_thread_bundle.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void Assign(BlacklistState* to, BlacklistState from) { | 16 void Assign(BlacklistState* to, BlacklistState from) { |
| 17 *to = from; | 17 *to = from; |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 EXPECT_EQ(BLACKLISTED_MALWARE, result[2]); | 77 EXPECT_EQ(BLACKLISTED_MALWARE, result[2]); |
| 78 EXPECT_EQ(BLACKLISTED_MALWARE, result[3]); | 78 EXPECT_EQ(BLACKLISTED_MALWARE, result[3]); |
| 79 EXPECT_EQ(BLACKLISTED_SECURITY_VULNERABILITY, result[4]); | 79 EXPECT_EQ(BLACKLISTED_SECURITY_VULNERABILITY, result[4]); |
| 80 EXPECT_EQ(BLACKLISTED_CWS_POLICY_VIOLATION, result[5]); | 80 EXPECT_EQ(BLACKLISTED_CWS_POLICY_VIOLATION, result[5]); |
| 81 EXPECT_EQ(BLACKLISTED_POTENTIALLY_UNWANTED, result[6]); | 81 EXPECT_EQ(BLACKLISTED_POTENTIALLY_UNWANTED, result[6]); |
| 82 EXPECT_EQ(NOT_BLACKLISTED, result[7]); | 82 EXPECT_EQ(NOT_BLACKLISTED, result[7]); |
| 83 EXPECT_EQ(NOT_BLACKLISTED, result[8]); | 83 EXPECT_EQ(NOT_BLACKLISTED, result[8]); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace extensions | 86 } // namespace extensions |
| OLD | NEW |