OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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> |
| 6 #include <stdint.h> |
| 7 |
5 #include "base/logging.h" | 8 #include "base/logging.h" |
6 #include "media/base/channel_layout.h" | 9 #include "media/base/channel_layout.h" |
7 #include "media/base/mock_media_log.h" | 10 #include "media/base/mock_media_log.h" |
8 #include "media/base/timestamp_constants.h" | 11 #include "media/base/timestamp_constants.h" |
9 #include "media/formats/webm/tracks_builder.h" | 12 #include "media/formats/webm/tracks_builder.h" |
10 #include "media/formats/webm/webm_constants.h" | 13 #include "media/formats/webm/webm_constants.h" |
11 #include "media/formats/webm/webm_tracks_parser.h" | 14 #include "media/formats/webm/webm_tracks_parser.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 | 17 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // (http://crbug.com/397067). | 205 // (http://crbug.com/397067). |
203 TracksBuilder tb(true); | 206 TracksBuilder tb(true); |
204 tb.AddAudioTrack(1, 1ULL << 31, "A_VORBIS", "audio", "", 40, 2, 8000); | 207 tb.AddAudioTrack(1, 1ULL << 31, "A_VORBIS", "audio", "", 40, 2, 8000); |
205 const std::vector<uint8_t> buf = tb.Finish(); | 208 const std::vector<uint8_t> buf = tb.Finish(); |
206 | 209 |
207 scoped_ptr<WebMTracksParser> parser(new WebMTracksParser(media_log_, true)); | 210 scoped_ptr<WebMTracksParser> parser(new WebMTracksParser(media_log_, true)); |
208 EXPECT_GT(parser->Parse(&buf[0], buf.size()),0); | 211 EXPECT_GT(parser->Parse(&buf[0], buf.size()),0); |
209 } | 212 } |
210 | 213 |
211 } // namespace media | 214 } // namespace media |
OLD | NEW |