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

Side by Side Diff: media/base/audio_video_metadata_extractor_unittest.cc

Issue 286953005: Roll FFmpeg for M37. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Roll DEPS for ChromiumOS fixes. Created 6 years, 7 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 | « DEPS ('k') | media/base/media_file_checker.cc » ('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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/sha1.h" 7 #include "base/sha1.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "media/base/audio_video_metadata_extractor.h" 9 #include "media/base/audio_video_metadata_extractor.h"
10 #include "media/base/test_data_util.h" 10 #include "media/base/test_data_util.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 extractor->stream_infos()[0].tags.find("compatible_brands")->second); 130 extractor->stream_infos()[0].tags.find("compatible_brands")->second);
131 EXPECT_EQ( 131 EXPECT_EQ(
132 "2014-02-11 00:39:25", 132 "2014-02-11 00:39:25",
133 extractor->stream_infos()[0].tags.find("creation_time")->second); 133 extractor->stream_infos()[0].tags.find("creation_time")->second);
134 EXPECT_EQ("isom", 134 EXPECT_EQ("isom",
135 extractor->stream_infos()[0].tags.find("major_brand")->second); 135 extractor->stream_infos()[0].tags.find("major_brand")->second);
136 EXPECT_EQ("0", 136 EXPECT_EQ("0",
137 extractor->stream_infos()[0].tags.find("minor_version")->second); 137 extractor->stream_infos()[0].tags.find("minor_version")->second);
138 138
139 EXPECT_EQ("h264", extractor->stream_infos()[1].type); 139 EXPECT_EQ("h264", extractor->stream_infos()[1].type);
140 EXPECT_EQ(4u, extractor->stream_infos()[1].tags.size()); 140 EXPECT_EQ(5u, extractor->stream_infos()[1].tags.size());
141 EXPECT_EQ("2014-02-11 00:39:25", 141 EXPECT_EQ("2014-02-11 00:39:25",
142 extractor->stream_infos()[1].tags.find("creation_time")->second); 142 extractor->stream_infos()[1].tags.find("creation_time")->second);
143 EXPECT_EQ("VideoHandle", 143 EXPECT_EQ("VideoHandle",
144 extractor->stream_infos()[1].tags.find("handler_name")->second); 144 extractor->stream_infos()[1].tags.find("handler_name")->second);
145 EXPECT_EQ("eng", extractor->stream_infos()[1].tags.find("language")->second); 145 EXPECT_EQ("eng", extractor->stream_infos()[1].tags.find("language")->second);
146 EXPECT_EQ("90", extractor->stream_infos()[1].tags.find("rotate")->second); 146 EXPECT_EQ("90", extractor->stream_infos()[1].tags.find("rotate")->second);
147 147
148 EXPECT_EQ("aac", extractor->stream_infos()[2].type); 148 EXPECT_EQ("aac", extractor->stream_infos()[2].type);
149 EXPECT_EQ(3u, extractor->stream_infos()[2].tags.size()); 149 EXPECT_EQ(3u, extractor->stream_infos()[2].tags.size());
150 EXPECT_EQ("2014-02-11 00:39:25", 150 EXPECT_EQ("2014-02-11 00:39:25",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 extractor->attached_images_bytes()[0].substr(0, 8)); 199 extractor->attached_images_bytes()[0].substr(0, 8));
200 EXPECT_EQ("IEND\xae\x42\x60\x82", 200 EXPECT_EQ("IEND\xae\x42\x60\x82",
201 extractor->attached_images_bytes()[0].substr( 201 extractor->attached_images_bytes()[0].substr(
202 extractor->attached_images_bytes()[0].size() - 8, 8)); 202 extractor->attached_images_bytes()[0].size() - 8, 8));
203 EXPECT_EQ("\xF3\xED\x8F\xC7\xC7\x98\xB9V|p\xC0u!\xB5\x82\xCF\x95\xF0\xCD\xCE", 203 EXPECT_EQ("\xF3\xED\x8F\xC7\xC7\x98\xB9V|p\xC0u!\xB5\x82\xCF\x95\xF0\xCD\xCE",
204 base::SHA1HashString(extractor->attached_images_bytes()[0])); 204 base::SHA1HashString(extractor->attached_images_bytes()[0]));
205 } 205 }
206 #endif 206 #endif
207 207
208 } // namespace media 208 } // namespace media
OLDNEW
« no previous file with comments | « DEPS ('k') | media/base/media_file_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698