diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-15 16:11:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-15 16:32:35 +0100 |
commit | d94f158aa6a1faa0f0825f333769617dd1269e9f (patch) | |
tree | 80954989318559133fd444ee7ee3be78cff90887 /samples/sample2_unittest.cc | |
parent | 42552c3316326dfd84e8285672b33b78a1a6a4ee (diff) |
Diffstat (limited to 'samples/sample2_unittest.cc')
-rw-r--r-- | samples/sample2_unittest.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/sample2_unittest.cc b/samples/sample2_unittest.cc index 4fa19b7..0848826 100644 --- a/samples/sample2_unittest.cc +++ b/samples/sample2_unittest.cc @@ -28,9 +28,6 @@ // 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 more complex unit test for a class // that has multiple member functions. @@ -42,7 +39,7 @@ #include "sample2.h" #include "gtest/gtest.h" - +namespace { // In this example, we test the MyString class (a simple string). // Tests the default c'tor. @@ -107,3 +104,4 @@ TEST(MyString, Set) { s.Set(NULL); EXPECT_STREQ(NULL, s.c_string()); } +} // namespace |