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_classifier_delegate.h" | 5 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "build/build_config.h" |
15 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_commands.h" | 18 #include "chrome/browser/ui/browser_commands.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 19 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/safe_browsing/csd.pb.h" | 21 #include "chrome/common/safe_browsing/csd.pb.h" |
20 #include "chrome/common/safe_browsing/safebrowsing_messages.h" | 22 #include "chrome/common/safe_browsing/safebrowsing_messages.h" |
21 #include "chrome/renderer/safe_browsing/features.h" | 23 #include "chrome/renderer/safe_browsing/features.h" |
22 #include "chrome/renderer/safe_browsing/phishing_classifier.h" | 24 #include "chrome/renderer/safe_browsing/phishing_classifier.h" |
23 #include "chrome/renderer/safe_browsing/scorer.h" | 25 #include "chrome/renderer/safe_browsing/scorer.h" |
24 #include "chrome/test/base/in_process_browser_test.h" | 26 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 RunClassificationDone(verdict); | 634 RunClassificationDone(verdict); |
633 ASSERT_TRUE(intercepting_filter_->verdict()); | 635 ASSERT_TRUE(intercepting_filter_->verdict()); |
634 EXPECT_EQ(verdict.SerializeAsString(), | 636 EXPECT_EQ(verdict.SerializeAsString(), |
635 intercepting_filter_->verdict()->SerializeAsString()); | 637 intercepting_filter_->verdict()->SerializeAsString()); |
636 | 638 |
637 // The delegate will cancel pending classification on destruction. | 639 // The delegate will cancel pending classification on destruction. |
638 EXPECT_CALL(*classifier_, CancelPendingClassification()); | 640 EXPECT_CALL(*classifier_, CancelPendingClassification()); |
639 } | 641 } |
640 | 642 |
641 } // namespace safe_browsing | 643 } // namespace safe_browsing |
OLD | NEW |