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

Unified Diff: net/base/int128_unittest.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: net/base/int128_unittest.cc
diff --git a/net/base/int128_unittest.cc b/net/base/int128_unittest.cc
index 957038bffd3b8c047e1095d4752c092d67fac05d..15330f8fee010e611d65a3c4da0d4bc84afa2b45 100644
--- a/net/base/int128_unittest.cc
+++ b/net/base/int128_unittest.cc
@@ -7,7 +7,6 @@
#include "net/base/int128.h"
#include "testing/gtest/include/gtest/gtest.h"
-
TEST(Int128, AllTests) {
uint128 zero(0);
uint128 one(1);
@@ -115,7 +114,7 @@ TEST(Int128, AllTests) {
}
TEST(Int128, PodTests) {
- uint128_pod pod = { 12345, 67890 };
+ uint128_pod pod = {12345, 67890};
uint128 from_pod(pod);
EXPECT_EQ(12345u, Uint128High64(from_pod));
EXPECT_EQ(67890u, Uint128Low64(from_pod));
@@ -225,7 +224,7 @@ TEST(Int128, Multiply) {
a = uint128(1) << i;
b = uint128(1) << j;
c = a * b;
- EXPECT_EQ(uint128(1) << (i+j), c);
+ EXPECT_EQ(uint128(1) << (i + j), c);
}
}
@@ -235,7 +234,7 @@ TEST(Int128, Multiply) {
c = a * b;
EXPECT_EQ(uint128(0x530EDA741C71D4C3ULL, 0xBF25975319080000ULL), c);
EXPECT_EQ(0, c - b * a);
- EXPECT_EQ(a*a - b*b, (a+b) * (a-b));
+ EXPECT_EQ(a * a - b * b, (a + b) * (a - b));
// Verified with dc.
a = uint128(0x0123456789abcdefULL, 0xfedcba9876543210ULL);
@@ -243,7 +242,7 @@ TEST(Int128, Multiply) {
c = a * b;
EXPECT_EQ(uint128(0x97a87f4f261ba3f2ULL, 0x342d0bbf48948200ULL), c);
EXPECT_EQ(0, c - b * a);
- EXPECT_EQ(a*a - b*b, (a+b) * (a-b));
+ EXPECT_EQ(a * a - b * b, (a + b) * (a - b));
}
TEST(Int128, AliasTests) {
« no previous file with comments | « net/base/int128.cc ('k') | net/base/io_buffer.cc » ('j') | net/base/mime_sniffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698