summaryrefslogtreecommitdiffstats
path: root/googletest/samples/sample9_unittest.cc
diff options
context:
space:
mode:
authormisterg <misterg@google.com>2017-08-07 17:20:57 (GMT)
committermisterg <misterg@google.com>2017-08-07 17:20:57 (GMT)
commit52a9c14c48ed8f3c68d1d10e53a5be761a901a17 (patch)
tree2fa76b7d48e10e3c5d5c9633a37da44780681aa3 /googletest/samples/sample9_unittest.cc
parentaa31cb67c2a9db4e6a93839bc2a29fe45e1dbd73 (diff)
downloadgoogletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.zip
googletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.tar.gz
googletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.tar.bz2
Samples changes upstreaming
Diffstat (limited to 'googletest/samples/sample9_unittest.cc')
-rw-r--r--googletest/samples/sample9_unittest.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/googletest/samples/sample9_unittest.cc b/googletest/samples/sample9_unittest.cc
index 87ddca7..fb35a3a 100644
--- a/googletest/samples/sample9_unittest.cc
+++ b/googletest/samples/sample9_unittest.cc
@@ -34,8 +34,8 @@
#include <stdio.h>
-#include "gtest/gtest.h"
-namespace {
+#include "third_party/gtest/include/gtest/gtest.h"
+
using ::testing::EmptyTestEventListener;
using ::testing::InitGoogleTest;
using ::testing::Test;
@@ -44,9 +44,7 @@ using ::testing::TestEventListeners;
using ::testing::TestInfo;
using ::testing::TestPartResult;
using ::testing::UnitTest;
-
namespace {
-
// Provides alternative output mode which produces minimal amount of
// information about tests.
class TersePrinter : public EmptyTestEventListener {
@@ -102,7 +100,6 @@ TEST(CustomOutputTest, Fails) {
EXPECT_EQ(1, 2)
<< "This test fails in order to demonstrate alternative failure messages";
}
-
} // namespace
int main(int argc, char **argv) {
@@ -158,4 +155,3 @@ int main(int argc, char **argv) {
return ret_val;
}
-} // namespace \ No newline at end of file