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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/memory_mapped_file.h" 9 #include "base/files/memory_mapped_file.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 CHECK_LE(profile, media::VIDEO_CODEC_PROFILE_MAX); 112 CHECK_LE(profile, media::VIDEO_CODEC_PROFILE_MAX);
113 test_stream->requested_profile = 113 test_stream->requested_profile =
114 static_cast<media::VideoCodecProfile>(profile); 114 static_cast<media::VideoCodecProfile>(profile);
115 115
116 if (fields.size() >= 5 && !fields[4].empty()) 116 if (fields.size() >= 5 && !fields[4].empty())
117 test_stream->out_filename = fields[4]; 117 test_stream->out_filename = fields[4];
118 118
119 if (fields.size() >= 6 && !fields[5].empty()) 119 if (fields.size() >= 6 && !fields[5].empty())
120 CHECK(base::StringToUint(fields[5], &test_stream->requested_bitrate)); 120 CHECK(base::StringToUint(fields[5], &test_stream->requested_bitrate));
121 121
122 if (fields.size() >= 7 && !fields[6].empty()) { 122 if (fields.size() >= 7 && !fields[6].empty())
123 CHECK(base::StringToUint(fields[6], 123 CHECK(base::StringToUint(fields[6], &test_stream->requested_framerate));
124
125 if (fields.size() >= 8 && !fields[7].empty()) {
126 CHECK(base::StringToUint(fields[7],
124 &test_stream->requested_subsequent_bitrate)); 127 &test_stream->requested_subsequent_bitrate));
125 } 128 }
126 129
127 if (fields.size() >= 8 && !fields[7].empty())
128 CHECK(base::StringToUint(fields[7], &test_stream->requested_framerate));
129
130 if (fields.size() >= 9 && !fields[8].empty()) { 130 if (fields.size() >= 9 && !fields[8].empty()) {
131 CHECK(base::StringToUint(fields[8], 131 CHECK(base::StringToUint(fields[8],
132 &test_stream->requested_subsequent_framerate)); 132 &test_stream->requested_subsequent_framerate));
133 } 133 }
134 134
135 CHECK(test_stream->input_file.Initialize(base::FilePath(filename))); 135 CHECK(test_stream->input_file.Initialize(base::FilePath(filename)));
136 } 136 }
137 137
138 enum ClientState { 138 enum ClientState {
139 CS_CREATED, 139 CS_CREATED,
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 test_stream_data->assign(it->second.c_str()); 947 test_stream_data->assign(it->second.c_str());
948 continue; 948 continue;
949 } 949 }
950 if (it->first == "v" || it->first == "vmodule") 950 if (it->first == "v" || it->first == "vmodule")
951 continue; 951 continue;
952 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; 952 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second;
953 } 953 }
954 954
955 return RUN_ALL_TESTS(); 955 return RUN_ALL_TESTS();
956 } 956 }
OLDNEW
« 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