aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gmock/gmock-spec-builders.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gmock/gmock-spec-builders.h b/include/gmock/gmock-spec-builders.h
index df2aef16..4f0b0725 100644
--- a/include/gmock/gmock-spec-builders.h
+++ b/include/gmock/gmock-spec-builders.h
@@ -575,7 +575,7 @@ class ExpectationBase {
// Describes the source file location of this expectation.
void DescribeLocationTo(::std::ostream* os) const {
- *os << file() << ":" << line() << ": ";
+ *os << FormatFileLocation(file(), line()) << " ";
}
// Describes how many times a function call matching this
@@ -1527,7 +1527,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
"returning default value.\n");
} else {
*os << "taking default action specified at:\n"
- << spec->file() << ":" << spec->line() << ":\n";
+ << FormatFileLocation(spec->file(), spec->line()) << "\n";
}
}