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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/macros.h" |
6 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
10 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
11 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" | 12 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" |
12 #include "chrome/browser/safe_browsing/client_side_detection_host.h" | 13 #include "chrome/browser/safe_browsing/client_side_detection_host.h" |
13 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 14 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
14 #include "chrome/browser/safe_browsing/database_manager.h" | 15 #include "chrome/browser/safe_browsing/database_manager.h" |
15 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 EXPECT_EQ(url, resource.url); | 1193 EXPECT_EQ(url, resource.url); |
1193 EXPECT_EQ(url, resource.original_url); | 1194 EXPECT_EQ(url, resource.original_url); |
1194 | 1195 |
1195 ExpectStartPhishingDetection(NULL); | 1196 ExpectStartPhishingDetection(NULL); |
1196 | 1197 |
1197 // Showing a phishing warning will invalidate all the weak pointers which | 1198 // Showing a phishing warning will invalidate all the weak pointers which |
1198 // means we will not extract malware features. | 1199 // means we will not extract malware features. |
1199 ExpectShouldClassifyForMalwareResult(false); | 1200 ExpectShouldClassifyForMalwareResult(false); |
1200 } | 1201 } |
1201 } // namespace safe_browsing | 1202 } // namespace safe_browsing |
OLD | NEW |