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

Unified Diff: chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixes comments by eroman Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc
===================================================================
--- chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc (revision 81350)
+++ chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc (working copy)
@@ -12,9 +12,9 @@
#include <string>
#include "base/memory/scoped_ptr.h"
-#include "base/sha2.h"
#include "base/string16.h"
#include "base/utf_string_conversions.h"
+#include "crypto/sha2.h"
#include "chrome/renderer/safe_browsing/client_model.pb.h"
#include "chrome/renderer/safe_browsing/features.h"
#include "chrome/renderer/safe_browsing/mock_feature_extractor_clock.h"
@@ -33,13 +33,13 @@
// Construct a model to test with. We include one feature from each of
// the feature extractors, which allows us to verify that they all ran.
ClientSideModel model;
- model.add_hashes(base::SHA256HashString(features::kUrlTldToken +
- std::string("net")));
- model.add_hashes(base::SHA256HashString(features::kPageLinkDomain +
- std::string("phishing.com")));
- model.add_hashes(base::SHA256HashString(features::kPageTerm +
- std::string("login")));
- model.add_hashes(base::SHA256HashString("login"));
+ model.add_hashes(crypto::SHA256HashString(features::kUrlTldToken +
+ std::string("net")));
+ model.add_hashes(crypto::SHA256HashString(features::kPageLinkDomain +
+ std::string("phishing.com")));
+ model.add_hashes(crypto::SHA256HashString(features::kPageTerm +
+ std::string("login")));
+ model.add_hashes(crypto::SHA256HashString("login"));
// Add a default rule with a non-phishy weight.
ClientSideModel::Rule* rule = model.add_rule();
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_classifier.cc ('k') | chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698