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/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 using ::testing::Mock; | 38 using ::testing::Mock; |
39 using ::testing::NiceMock; | 39 using ::testing::NiceMock; |
40 using ::testing::NotNull; | 40 using ::testing::NotNull; |
41 using ::testing::Pointee; | 41 using ::testing::Pointee; |
42 using ::testing::Return; | 42 using ::testing::Return; |
43 using ::testing::SaveArg; | 43 using ::testing::SaveArg; |
44 using ::testing::SetArgumentPointee; | 44 using ::testing::SetArgumentPointee; |
45 using ::testing::StrictMock; | 45 using ::testing::StrictMock; |
46 using content::BrowserThread; | 46 using content::BrowserThread; |
47 using content::RenderViewHostTester; | 47 using content::RenderViewHostTester; |
| 48 using content::ResourceType; |
48 using content::WebContents; | 49 using content::WebContents; |
49 | 50 |
50 namespace { | 51 namespace { |
51 | 52 |
52 const bool kFalse = false; | 53 const bool kFalse = false; |
53 const bool kTrue = true; | 54 const bool kTrue = true; |
54 | 55 |
55 } // namespace | 56 } // namespace |
56 | 57 |
57 namespace safe_browsing { | 58 namespace safe_browsing { |
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 EXPECT_EQ(url, resource.url); | 1138 EXPECT_EQ(url, resource.url); |
1138 EXPECT_EQ(url, resource.original_url); | 1139 EXPECT_EQ(url, resource.original_url); |
1139 | 1140 |
1140 ExpectStartPhishingDetection(NULL); | 1141 ExpectStartPhishingDetection(NULL); |
1141 | 1142 |
1142 // Showing a phishing warning will invalidate all the weak pointers which | 1143 // Showing a phishing warning will invalidate all the weak pointers which |
1143 // means we will not extract malware features. | 1144 // means we will not extract malware features. |
1144 ExpectShouldClassifyForMalwareResult(false); | 1145 ExpectShouldClassifyForMalwareResult(false); |
1145 } | 1146 } |
1146 } // namespace safe_browsing | 1147 } // namespace safe_browsing |
OLD | NEW |