| 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 "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" | 5 #include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chrome/renderer/chrome_content_renderer_client.h" | 15 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 16 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" | 16 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" |
| 17 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h" | 17 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h" |
| 18 #include "chrome/renderer/safe_browsing/features.h" | 18 #include "chrome/renderer/safe_browsing/features.h" |
| 19 #include "chrome/renderer/safe_browsing/mock_feature_extractor_clock.h" | 19 #include "chrome/renderer/safe_browsing/mock_feature_extractor_clock.h" |
| 20 #include "chrome/renderer/safe_browsing/test_utils.h" | 20 #include "chrome/renderer/safe_browsing/test_utils.h" |
| 21 #include "chrome/renderer/spellchecker/spellcheck.h" | 21 #include "chrome/renderer/spellchecker/spellcheck.h" |
| 22 #include "chrome/test/base/chrome_render_view_test.h" | 22 #include "chrome/test/base/chrome_render_view_test.h" |
| 23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 "<html><head></head><body>" | 578 "<html><head></head><body>" |
| 579 "<iframe src=\"" + | 579 "<iframe src=\"" + |
| 580 net::EscapeForHTML(iframe1_url.spec()) + | 580 net::EscapeForHTML(iframe1_url.spec()) + |
| 581 "\" id=\"frame1\"></iframe>" | 581 "\" id=\"frame1\"></iframe>" |
| 582 "<form></form></body></html>"); | 582 "<form></form></body></html>"); |
| 583 ExtractFeatures("host.com", html, &features); | 583 ExtractFeatures("host.com", html, &features); |
| 584 ExpectFeatureMapsAreEqual(features, expected_features); | 584 ExpectFeatureMapsAreEqual(features, expected_features); |
| 585 } | 585 } |
| 586 | 586 |
| 587 } // namespace safe_browsing | 587 } // namespace safe_browsing |
| OLD | NEW |