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

Side by Side Diff: media/test/pipeline_integration_test.cc

Issue 2320043005: Read directly from 'senc' box when 'senc' box is present (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 source.EndOfStream(); 1946 source.EndOfStream();
1947 1947
1948 Play(); 1948 Play();
1949 1949
1950 ASSERT_TRUE(WaitUntilOnEnded()); 1950 ASSERT_TRUE(WaitUntilOnEnded());
1951 source.Shutdown(); 1951 source.Shutdown();
1952 Stop(); 1952 Stop();
1953 } 1953 }
1954 1954
1955 TEST_F(PipelineIntegrationTest, 1955 TEST_F(PipelineIntegrationTest,
1956 MAYBE_EME(EncryptedPlayback_MP4_CENC_SENC_NO_SAIO_Video)) {
xhwang 2016/10/07 18:31:27 Could you please add more comments here or in the
1957 MockMediaSource source("bear-640x360-v_frag-cenc-senc-no-saio.mp4", kMP4Video,
1958 kAppendWholeFile);
1959 FakeEncryptedMedia encrypted_media(new KeyProvidingApp());
1960 EXPECT_EQ(PIPELINE_OK,
1961 StartPipelineWithEncryptedMedia(&source, &encrypted_media));
1962
1963 source.EndOfStream();
1964
1965 Play();
1966
1967 ASSERT_TRUE(WaitUntilOnEnded());
1968 source.Shutdown();
1969 Stop();
1970 }
1971
1972 TEST_F(PipelineIntegrationTest,
1956 MAYBE_EME(EncryptedPlayback_MP4_CENC_KeyRotation_Video)) { 1973 MAYBE_EME(EncryptedPlayback_MP4_CENC_KeyRotation_Video)) {
1957 MockMediaSource source("bear-1280x720-v_frag-cenc-key_rotation.mp4", 1974 MockMediaSource source("bear-1280x720-v_frag-cenc-key_rotation.mp4",
1958 kMP4Video, kAppendWholeFile); 1975 kMP4Video, kAppendWholeFile);
1959 FakeEncryptedMedia encrypted_media(new RotatingKeyProvidingApp()); 1976 FakeEncryptedMedia encrypted_media(new RotatingKeyProvidingApp());
1960 EXPECT_EQ(PIPELINE_OK, 1977 EXPECT_EQ(PIPELINE_OK,
1961 StartPipelineWithEncryptedMedia(&source, &encrypted_media)); 1978 StartPipelineWithEncryptedMedia(&source, &encrypted_media));
1962 1979
1963 source.EndOfStream(); 1980 source.EndOfStream();
1964 1981
1965 Play(); 1982 Play();
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2377 2394
2378 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { 2395 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) {
2379 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); 2396 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm"));
2380 Play(); 2397 Play();
2381 ASSERT_TRUE(WaitUntilOnEnded()); 2398 ASSERT_TRUE(WaitUntilOnEnded());
2382 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), 2399 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000),
2383 demuxer_->GetStartTime()); 2400 demuxer_->GetStartTime());
2384 } 2401 }
2385 2402
2386 } // namespace media 2403 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698