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/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" | 11 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" |
12 #include "chrome/browser/safe_browsing/client_side_detection_host.h" | 12 #include "chrome/browser/safe_browsing/client_side_detection_host.h" |
13 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 13 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
14 #include "chrome/browser/safe_browsing/database_manager.h" | 14 #include "chrome/browser/safe_browsing/database_manager.h" |
15 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 15 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
16 #include "chrome/browser/safe_browsing/ui_manager.h" | 16 #include "chrome/browser/safe_browsing/ui_manager.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/safe_browsing/csd.pb.h" | 18 #include "chrome/common/safe_browsing/csd.pb.h" |
19 #include "chrome/common/safe_browsing/safebrowsing_messages.h" | 19 #include "chrome/common/safe_browsing/safebrowsing_messages.h" |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 EXPECT_TRUE(Mock::VerifyAndClear(ui_manager_.get())); | 908 EXPECT_TRUE(Mock::VerifyAndClear(ui_manager_.get())); |
909 EXPECT_EQ(url, resource.url); | 909 EXPECT_EQ(url, resource.url); |
910 EXPECT_EQ(url, resource.original_url); | 910 EXPECT_EQ(url, resource.original_url); |
911 resource.callback.Reset(); | 911 resource.callback.Reset(); |
912 msg = process()->sink().GetFirstMessageMatching( | 912 msg = process()->sink().GetFirstMessageMatching( |
913 SafeBrowsingMsg_StartPhishingDetection::ID); | 913 SafeBrowsingMsg_StartPhishingDetection::ID); |
914 ASSERT_FALSE(msg); | 914 ASSERT_FALSE(msg); |
915 } | 915 } |
916 | 916 |
917 } // namespace safe_browsing | 917 } // namespace safe_browsing |
OLD | NEW |