Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: media/test/pipeline_integration_test.cc

Issue 2090323002: Make callers of FromUTC(Local)Exploded in media/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/formats/webm/webm_info_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_test.cc
diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
index 1ae0ac8f800aad0933a274de404b0af6b7aaf366..b84ab6b4d125b3a62a85e274929c35445c2e2607 100644
--- a/media/test/pipeline_integration_test.cc
+++ b/media/test/pipeline_integration_test.cc
@@ -178,7 +178,8 @@ static base::Time kLiveTimelineOffset() {
exploded_time.minute = 34;
exploded_time.second = 56;
exploded_time.millisecond = 789;
- base::Time timeline_offset = base::Time::FromUTCExploded(exploded_time);
+ base::Time timeline_offset;
+ EXPECT_TRUE(base::Time::FromUTCExploded(exploded_time, &timeline_offset));
timeline_offset += base::TimeDelta::FromMicroseconds(123);
@@ -191,8 +192,9 @@ static base::Time TruncateToFFmpegTimeResolution(base::Time t) {
base::Time::Exploded exploded_time;
t.UTCExplode(&exploded_time);
exploded_time.millisecond = 0;
-
- return base::Time::FromUTCExploded(exploded_time);
+ base::Time out_time;
+ EXPECT_TRUE(base::Time::FromUTCExploded(exploded_time, &out_time));
+ return out_time;
}
// Note: Tests using this class only exercise the DecryptingDemuxerStream path.
« no previous file with comments | « media/formats/webm/webm_info_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698