summaryrefslogtreecommitdiffstats
path: root/googletest/samples/sample4_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/samples/sample4_unittest.cc')
-rw-r--r--googletest/samples/sample4_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/googletest/samples/sample4_unittest.cc b/googletest/samples/sample4_unittest.cc
index fa5afc7..7bf9ea3 100644
--- a/googletest/samples/sample4_unittest.cc
+++ b/googletest/samples/sample4_unittest.cc
@@ -29,10 +29,12 @@
//
// Author: wan@google.com (Zhanyong Wan)
-#include "gtest/gtest.h"
#include "sample4.h"
+#include "gtest/gtest.h"
+namespace {
// Tests the Increment() method.
+
TEST(Counter, Increment) {
Counter c;
@@ -43,3 +45,5 @@ TEST(Counter, Increment) {
EXPECT_EQ(1, c.Increment());
EXPECT_EQ(2, c.Increment());
}
+
+} // namespace