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.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/googletest/samples/sample4_unittest.cc b/googletest/samples/sample4_unittest.cc
index 948266e..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,4 +45,5 @@ TEST(Counter, Increment) {
EXPECT_EQ(1, c.Increment());
EXPECT_EQ(2, c.Increment());
}
+
} // namespace