proxygen
gtest_color_test_.cc File Reference
#include <stdio.h>
#include "gtest/gtest.h"
#include "src/gtest-internal-inl.h"

Go to the source code of this file.

Macros

#define GTEST_IMPLEMENTATION_   1
 

Functions

 TEST (GTestColorTest, Dummy)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define GTEST_IMPLEMENTATION_   1

Definition at line 45 of file gtest_color_test_.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 58 of file gtest_color_test_.cc.

References testing::InitGoogleTest(), and testing::internal::ShouldUseColor().

58  {
60 
61  if (ShouldUseColor(true)) {
62  // Google Test decides to use colors in the output (assuming it
63  // goes to a TTY).
64  printf("YES\n");
65  return 1;
66  } else {
67  // Google Test decides not to use colors in the output.
68  printf("NO\n");
69  return 0;
70  }
71 }
GTEST_API_ bool ShouldUseColor(bool stdout_is_tty)
Definition: gtest.cc:2916
char ** argv
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition: gtest.cc:5370
TEST ( GTestColorTest  ,
Dummy   
)

Definition at line 55 of file gtest_color_test_.cc.

55  {
56 }