Index: ext/googletest/googletest/samples/sample1_unittest.cc =================================================================== diff -u -N -r4a481bbe77043e0bda2435c6d62a02700b3e46c5 -r2e4eacb299f21d06196fe13140b4b0d095abdca9 --- ext/googletest/googletest/samples/sample1_unittest.cc (.../sample1_unittest.cc) (revision 4a481bbe77043e0bda2435c6d62a02700b3e46c5) +++ ext/googletest/googletest/samples/sample1_unittest.cc (.../sample1_unittest.cc) (revision 2e4eacb299f21d06196fe13140b4b0d095abdca9) @@ -28,10 +28,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // A sample program demonstrating using Google C++ testing framework. -// -// Author: wan@google.com (Zhanyong Wan) - // This sample shows how to write a simple unit test for a function, // using Google C++ testing framework. // @@ -46,8 +43,8 @@ #include #include "sample1.h" #include "gtest/gtest.h" +namespace { - // Step 2. Use the TEST macro to define your tests. // // TEST has two parameters: the test case name and the test name. @@ -139,6 +136,7 @@ EXPECT_FALSE(IsPrime(6)); EXPECT_TRUE(IsPrime(23)); } +} // namespace // Step 3. Call RUN_ALL_TESTS() in main(). //