Use FormatFileLocation for streaming file and line
This commit is contained in:
		@@ -34,6 +34,7 @@
 | 
			
		||||
// EXPECT_CALL).
 | 
			
		||||
 | 
			
		||||
#include "gmock/gmock-spec-builders.h"
 | 
			
		||||
#include "gtest/internal/gtest-port.h"
 | 
			
		||||
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <iostream>  // NOLINT
 | 
			
		||||
@@ -70,7 +71,7 @@ GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity,
 | 
			
		||||
                                const char* file, int line,
 | 
			
		||||
                                const std::string& message) {
 | 
			
		||||
  ::std::ostringstream s;
 | 
			
		||||
  s << file << ":" << line << ": " << message << ::std::endl;
 | 
			
		||||
  s << internal::FormatFileLocation(file, line) << " " << message << ::std::endl;
 | 
			
		||||
  Log(severity, s.str(), 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user