Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/common/safe_browsing/csd.pb.h"
11 #include "chrome/renderer/safe_browsing/features.h" 10 #include "chrome/renderer/safe_browsing/features.h"
12 #include "chrome/renderer/safe_browsing/phishing_classifier.h" 11 #include "chrome/renderer/safe_browsing/phishing_classifier.h"
13 #include "chrome/renderer/safe_browsing/scorer.h" 12 #include "chrome/renderer/safe_browsing/scorer.h"
14 #include "chrome/test/base/chrome_render_view_test.h" 13 #include "chrome/test/base/chrome_render_view_test.h"
15 #include "chrome/test/base/chrome_unit_test_suite.h" 14 #include "chrome/test/base/chrome_unit_test_suite.h"
16 #include "components/safe_browsing/common/safebrowsing_messages.h" 15 #include "components/safe_browsing/common/safebrowsing_messages.h"
16 #include "components/safe_browsing/csd.pb.h"
17 #include "content/public/renderer/render_frame.h" 17 #include "content/public/renderer/render_frame.h"
18 #include "content/public/renderer/render_view.h" 18 #include "content/public/renderer/render_view.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 #include "third_party/WebKit/public/platform/WebURL.h" 20 #include "third_party/WebKit/public/platform/WebURL.h"
21 #include "third_party/WebKit/public/platform/WebURLRequest.h" 21 #include "third_party/WebKit/public/platform/WebURLRequest.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 using base::ASCIIToUTF16; 24 using base::ASCIIToUTF16;
25 using ::testing::_; 25 using ::testing::_;
26 using ::testing::InSequence; 26 using ::testing::InSequence;
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 verdict.set_url(url.spec()); 496 verdict.set_url(url.spec());
497 verdict.set_client_score(0.8f); 497 verdict.set_client_score(0.8f);
498 verdict.set_is_phishing(false); // Send IPC even if site is not phishing. 498 verdict.set_is_phishing(false); // Send IPC even if site is not phishing.
499 RunAndVerifyClassificationDone(verdict); 499 RunAndVerifyClassificationDone(verdict);
500 500
501 // The delegate will cancel pending classification on destruction. 501 // The delegate will cancel pending classification on destruction.
502 EXPECT_CALL(*classifier_, CancelPendingClassification()); 502 EXPECT_CALL(*classifier_, CancelPendingClassification());
503 } 503 }
504 504
505 } // namespace safe_browsing 505 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_classifier_delegate.cc ('k') | chrome/tools/safe_browsing/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698