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

Side by Side Diff: components/safe_browsing/renderer/murmurhash3_util_unittest.cc

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Unit test to verify basic operation of murmurhash3. 5 // Unit test to verify basic operation of murmurhash3.
6 6
7 #include "chrome/renderer/safe_browsing/murmurhash3_util.h" 7 #include "components/safe_browsing/renderer/murmurhash3_util.h"
8 8
9 #include <string> 9 #include <string>
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace safe_browsing { 12 namespace safe_browsing {
13 13
14 TEST(MurmurHash3UtilTest, MurmurHash3String) { 14 TEST(MurmurHash3UtilTest, MurmurHash3String) {
15 EXPECT_EQ(893017187U, MurmurHash3String("abcd", 1234U)); 15 EXPECT_EQ(893017187U, MurmurHash3String("abcd", 1234U));
16 EXPECT_EQ(3322282861U, MurmurHash3String("abcde", 56789U)); 16 EXPECT_EQ(3322282861U, MurmurHash3String("abcde", 56789U));
17 } 17 }
18 18
19 } // namespace safe_browsing 19 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing/renderer/murmurhash3_util.cc ('k') | components/safe_browsing/renderer/phishing_classifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698