Index: base/test/launcher/test_results_tracker.cc |
diff --git a/base/test/launcher/test_results_tracker.cc b/base/test/launcher/test_results_tracker.cc |
index 1e3b2b059470c26bdb32c5b27cbf66d664113557..b553fd6b51e9b80e1a681d9f563f2e5f930ea996 100644 |
--- a/base/test/launcher/test_results_tracker.cc |
+++ b/base/test/launcher/test_results_tracker.cc |
@@ -288,7 +288,8 @@ bool TestResultsTracker::SaveSummaryAsJSON(const FilePath& path) const { |
test_result_value->SetString("status", test_result.StatusAsString()); |
test_result_value->SetInteger( |
- "elapsed_time_ms", test_result.elapsed_time.InMilliseconds()); |
+ "elapsed_time_ms", |
+ static_cast<int>(test_result.elapsed_time.InMilliseconds())); |
// There are no guarantees about character encoding of the output |
// snippet. Escape it and record whether it was losless. |