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

Side by Side Diff: media/formats/webm/webm_tracks_parser_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
« no previous file with comments | « media/formats/webm/webm_tracks_parser.h ('k') | media/formats/webm/webm_video_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/formats/webm/webm_tracks_parser.h ('k') | media/formats/webm/webm_video_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698