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.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/samples/sample4_unittest.cc b/googletest/samples/sample4_unittest.cc
index fa5afc7..2d13a8b 100644
--- a/googletest/samples/sample4_unittest.cc
+++ b/googletest/samples/sample4_unittest.cc
@@ -31,7 +31,7 @@
#include "gtest/gtest.h"
#include "sample4.h"
-
+namespace {
// Tests the Increment() method.
TEST(Counter, Increment) {
Counter c;
@@ -43,3 +43,4 @@ TEST(Counter, Increment) {
EXPECT_EQ(1, c.Increment());
EXPECT_EQ(2, c.Increment());
}
+} // namespace \ No newline at end of file