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

Unified Diff: components/rappor/byte_vector_utils_unittest.cc

Issue 264123004: Modify rappor parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert platform/os part, modify metric names. Created 6 years, 7 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: components/rappor/byte_vector_utils_unittest.cc
diff --git a/components/rappor/byte_vector_utils_unittest.cc b/components/rappor/byte_vector_utils_unittest.cc
index 54df9ea16455fc6c4075260e484bca0cab33bd23..672fa8d6626a5b0b8d001a3a98337b47da6e6af6 100644
--- a/components/rappor/byte_vector_utils_unittest.cc
+++ b/components/rappor/byte_vector_utils_unittest.cc
@@ -26,6 +26,15 @@ std::string HexToString(const char* hex) {
} // namespace
+TEST(ByteVectorTest, ByteVectorAnd) {
+ ByteVector lhs(2);
+ lhs[1] = 0x12;
+ ByteVector rhs(2);
+ rhs[1] = 0x03;
+
+ EXPECT_EQ(0x02, (*ByteVectorAnd(lhs, &rhs))[1]);
+}
+
TEST(ByteVectorTest, ByteVectorOr) {
ByteVector lhs(2);
lhs[1] = 0x12;

Powered by Google App Engine
This is Rietveld 408576698