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

Unified Diff: content/common/gpu/media/video_encode_accelerator_unittest.cc

Issue 257713003: veatest: Fix parameter string parse order. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/video_encode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_encode_accelerator_unittest.cc b/content/common/gpu/media/video_encode_accelerator_unittest.cc
index ecebcef0da71ffb84e8f3c0d1ebe62d7ab20ad48..d8c8eef3a9283b44bf26349551b8899b820dd8de 100644
--- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
@@ -119,14 +119,14 @@ static void ParseAndReadTestStreamData(const base::FilePath::StringType& data,
if (fields.size() >= 6 && !fields[5].empty())
CHECK(base::StringToUint(fields[5], &test_stream->requested_bitrate));
- if (fields.size() >= 7 && !fields[6].empty()) {
- CHECK(base::StringToUint(fields[6],
+ if (fields.size() >= 7 && !fields[6].empty())
+ CHECK(base::StringToUint(fields[6], &test_stream->requested_framerate));
+
+ if (fields.size() >= 8 && !fields[7].empty()) {
+ CHECK(base::StringToUint(fields[7],
&test_stream->requested_subsequent_bitrate));
}
- if (fields.size() >= 8 && !fields[7].empty())
- CHECK(base::StringToUint(fields[7], &test_stream->requested_framerate));
-
if (fields.size() >= 9 && !fields[8].empty()) {
CHECK(base::StringToUint(fields[8],
&test_stream->requested_subsequent_framerate));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698