blob: f550041e41481c83658bbf143f6933fd7ade9078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Unit test to verify basic operation of murmurhash3.
#include "chrome/renderer/safe_browsing/murmurhash3_util.h"
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
TEST(MurmurHash3UtilTest, MurmurHash3String) {
EXPECT_EQ(893017187U, MurmurHash3String("abcd", 1234U));
EXPECT_EQ(3322282861U, MurmurHash3String("abcde", 56789U));
}
} // namespace safe_browsing
|