Lines Matching defs:line

37 // This line ensures that gtest.h can be compiled on its own, even
509 // specified on the command line.
769 // environment variable or a command line flag. E.g. you can set the
869 int line;
1361 // Parses the command line for Google Test flags, without initializing
1595 "&line=" + StreamableToString(test_part_result.line_number()) +
1664 // specified on the command line.
1833 int line,
1835 : data_(new AssertHelperData(type, file, line, message)) {
1845 AddTestPartResult(data_->type, data_->file, data_->line,
2845 0, // no line width restrictions
3417 -1, // We have no info on which line caused the exception.
3718 const char* file, int line) {
3730 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
4970 ScopedTrace::ScopedTrace(const char* file, int line, const Message& message)
4974 trace.line = line;
5277 msg << "\n" << internal::FormatFileLocation(trace.file, trace.line)
5297 // command line for debugging.
5992 // Prints the given C-string on a single line by replacing all '\n'
6032 // We print the type parameter on a single line to make
6041 // We print the value parameter on a single line to make the
6156 // Parses a string as a command line flag. The string should have
6247 // If Google Test detects that a command line flag has its prefix but is not
6307 "following command line flags to control its behavior:\n"
6369 // Parses the command line for Google Test flags, without initializing
6441 // Parses the command line for Google Test flags, without initializing
6481 // RUN_ALL_TESTS(). In particular, it parses a command line for the
6603 "Indicates the file, line number, temporal index of "
6770 ::std::string("CHECK failed: File ") + __FILE__ + ", line " \
6791 ::std::string("CHECK failed: File ") + __FILE__ + ", line " \
6840 const char* file, int line, DeathTest** test) {
6842 statement, regex, file, line, test);
7107 int line)
7108 : DeathTestImpl(a_statement, a_regex), file_(file), line_(line) {}
7117 // The line number on which the death test is located.
7360 // program from the beginning, with command-line flags set that cause
7365 const char* file, int line) :
7366 ForkingDeathTest(a_statement, a_regex), file_(file), line_(line) { }
7376 // The line number on which the death test is located.
7380 // Utility class for accumulating command-line arguments.
7416 char* const* argv; // Command-line arguments for the child's call to exec
7628 // See the comment in NoExecDeathTest::AssumeRole for why the next line
7648 const char* file, int line,
7665 if (!(flag->file() == file && flag->line() == line &&
7676 *test = new WindowsDeathTest(statement, regex, file, line);
7682 *test = new ExecDeathTest(statement, regex, file, line);
7795 int line = -1;
7808 || !ParseNaturalNumber(fields[1], &line)
7822 || !ParseNaturalNumber(fields[1], &line)
7831 return new InternalRunDeathTestFlag(fields[0], line, index, write_fd);
8664 // Formats a source file path and a line number as they would appear
8666 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line) {
8669 if (line < 0) {
8673 return file_name + "(" + StreamableToString(line) + "):";
8675 return file_name + ":" + StreamableToString(line) + ":";
8685 const char* file, int line) {
8688 if (line < 0)
8691 return file_name + ":" + StreamableToString(line);
8695 GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line)
8702 << FormatFileLocation(file, line).c_str() << ": ";
8887 // A copy of all command line arguments. Set by InitGoogleTest().
9534 const char* file, int line, const char* registered_tests) {
9580 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),