| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 base::CommandLine::Init(0, nullptr); | 39 base::CommandLine::Init(0, nullptr); |
| 40 | 40 |
| 41 media::InitializeMediaLibrary(); | 41 media::InitializeMediaLibrary(); |
| 42 | 42 |
| 43 media::PipelineIntegrationTestBase test; | 43 media::PipelineIntegrationTestBase test; |
| 44 | 44 |
| 45 test.set_encrypted_media_init_data_cb( | 45 test.set_encrypted_media_init_data_cb( |
| 46 base::Bind(&OnEncryptedMediaInitData, &test)); | 46 base::Bind(&OnEncryptedMediaInitData, &test)); |
| 47 | 47 |
| 48 media::PipelineStatus pipeline_status = | 48 media::PipelineStatus pipeline_status = |
| 49 test.Start(data, size, media::PipelineIntegrationTestBase::kClockless); | 49 test.Start(data, size, |
| 50 media::PipelineIntegrationTestBase::kClockless | |
| 51 media::PipelineIntegrationTestBase::kUnreliableDuration); |
| 50 if (pipeline_status != media::PIPELINE_OK) | 52 if (pipeline_status != media::PIPELINE_OK) |
| 51 return 0; | 53 return 0; |
| 52 | 54 |
| 53 test.Play(); | 55 test.Play(); |
| 54 pipeline_status = test.WaitUntilEndedOrError(); | 56 pipeline_status = test.WaitUntilEndedOrError(); |
| 55 if (pipeline_status != media::PIPELINE_OK) | 57 if (pipeline_status != media::PIPELINE_OK) |
| 56 return 0; | 58 return 0; |
| 57 | 59 |
| 58 test.Seek(base::TimeDelta()); | 60 test.Seek(base::TimeDelta()); |
| 59 | 61 |
| 60 return 0; | 62 return 0; |
| 61 } | 63 } |
| OLD | NEW |