• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/utils/unittest/googletest/

Lines Matching +defs:color +defs:instance

199     color,
200 internal::StringFromGTestEnv("color", "auto"),
204 "is set to xterm, xterm-color, xterm-256color, linux or cygwin.");
2227 // The newly created TestInfo instance will assume
2531 // Returns the character attribute for the given color.
2532 WORD GetColorAttribute(GTestColor color) {
2533 switch (color) {
2543 // Returns the ANSI color code for the given color. COLOR_DEFAULT is
2545 const char* GetAnsiColorCode(GTestColor color) {
2546 switch (color) {
2558 const char* const gtest_color = GTEST_FLAG(color).c_str();
2570 String::CStringEquals(term, "xterm-color") ||
2571 String::CStringEquals(term, "xterm-256color") ||
2592 void ColoredPrintf(GTestColor color, const char* fmt, ...) {
2601 const bool use_color = in_color_mode && (color != COLOR_DEFAULT);
2614 // Gets the current text color.
2624 GetColorAttribute(color) | FOREGROUND_INTENSITY);
2628 // Restores the text color.
2631 printf("\033[0;3%sm", GetAnsiColorCode(color));
3618 static UnitTest* const instance = new UnitTest;
3619 return instance;
3621 static UnitTest instance;
3622 return &instance;
4628 // sequences can be used in the string to control the text color:
4631 // @R changes the color to red.
4632 // @G changes the color to green.
4633 // @Y changes the color to yellow.
4634 // @D changes to the default terminal text color.
4639 GTestColor color = COLOR_DEFAULT; // The current color.
4648 ColoredPrintf(color, "%s", str);
4652 ColoredPrintf(color, "%s", String(str, p - str).c_str());
4657 ColoredPrintf(color, "@");
4659 color = COLOR_DEFAULT;
4661 color = COLOR_RED;
4663 color = COLOR_GREEN;
4665 color = COLOR_YELLOW;
4698 " @G--" GTEST_FLAG_PREFIX_ "color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n"
4728 "color=no@D or set\n"
4756 ParseStringFlag(arg, kColorFlag, &GTEST_FLAG(color)) ||