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

Lines Matching +defs:trace +defs:buffer

173 // stack trace.
174 const char kStackTraceMarker[] = "\nStack trace:\n";
749 // Returns the current OS stack trace as a String.
758 // trace but Bar() and CurrentOsStackTraceExceptTop() won't.
1359 error_text, // output buffer
1430 // The output buffer str must containt at least 32 characters.
1431 // The function returns the address of the output buffer.
1458 // buffer just in case. This is also enough for strncpy to
1522 char buffer[32]; // CodePointToUtf8 requires a buffer this big.
1523 stream << CodePointToUtf8(unicode_code_point, buffer);
1698 // there's an error, "<formatting error or buffer exceeded>" is
1704 char buffer[4096];
1705 const int kBufferSize = sizeof(buffer)/sizeof(buffer[0]);
1713 const int size = vsnprintf(buffer, kBufferSize, format, args);
1717 const int size = vsnprintf(buffer, kBufferSize, format, args);
1721 // vsnprintf()'s behavior is not portable. When the buffer is not
1723 // needed buffer size on Linux. When there is an output error, it
1727 return String("<formatting error or buffer exceeded>");
1729 return String(buffer, size);
1733 // Converts the buffer in a stringstream to a String, converting NUL
1941 String()); // No stack trace, either.
3411 // arbitrarily long test failure message and stack trace.
3478 // trace stack maintained by Google Test.
3481 TraceInfo trace;
3482 trace.file = file;
3483 trace.line = line;
3484 trace.message = message.GetString();
3486 UnitTest::GetInstance()->PushGTestTrace(trace);
3498 // Returns the current OS stack trace as a String. Parameters:
3501 // in the trace.
3730 msg << "\n" << GTEST_NAME_ << " trace:";
3734 const internal::TraceInfo& trace = impl_->gtest_trace_stack()[i - 1];
3735 msg << "\n" << internal::FormatFileLocation(trace.file, trace.line)
3736 << " " << trace.message;
3890 // Pushes a trace defined by SCOPED_TRACE() on to the per-thread
3891 // Google Test trace stack.
3893 void UnitTest::PushGTestTrace(const internal::TraceInfo& trace) {
3895 impl_->gtest_trace_stack().push_back(trace);
3898 // Pops a trace from the per-thread Google Test trace stack.
4419 // Sets the OS stack trace getter.
4421 // Does nothing if the input and the current OS stack trace getter are
4432 // Returns the current OS stack trace getter if it is not NULL;
4476 // Returns the current OS stack trace as a String.
4485 // the trace but Bar() and GetCurrentOsStackTraceExceptTop() won't.