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

Unified Diff: Source/wtf/CheckedArithmeticTest.cpp

Issue 1184043002: Fix unit test style in Source/wtf/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apply review comments Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/wtf/DequeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/CheckedArithmeticTest.cpp
diff --git a/Source/wtf/CheckedArithmeticTest.cpp b/Source/wtf/CheckedArithmeticTest.cpp
index 650e3ac29c5284b859ae7b1b01673adceb2ccf67..d10572e88cf68b46180fcc9f47767d2f89ad66ae 100644
--- a/Source/wtf/CheckedArithmeticTest.cpp
+++ b/Source/wtf/CheckedArithmeticTest.cpp
@@ -24,14 +24,14 @@
*/
#include "config.h"
-
#include "wtf/CheckedArithmetic.h"
+
#include <gtest/gtest.h>
-namespace {
+namespace WTF {
#define CheckedArithmeticTest(type, coerceLiteral, MixedSignednessTest) \
- TEST(WTF, Checked_##type) \
+ TEST(CheckedArithmeticTest, Checked_##type) \
{ \
Checked<type, RecordOverflow> value; \
EXPECT_EQ(coerceLiteral(0), value.unsafeGet()); \
@@ -148,4 +148,4 @@ CheckedArithmeticTest(uint32_t, CoerceLiteralToUnsigned, AllowMixedSignednessTes
CheckedArithmeticTest(int64_t, CoerceLiteralNop, IgnoreMixedSignednessTest)
CheckedArithmeticTest(uint64_t, CoerceLiteralToUnsigned, IgnoreMixedSignednessTest)
-} // namespace
+} // namespace WTF
« no previous file with comments | « no previous file | Source/wtf/DequeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698