|
|
|
@ -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
|