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

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

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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
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 78e7f455ffaea68539464bf7fb2abc4855e88002..d35e2fd15ea44aa9688d9d0dead2a76a23a50c74 100644
--- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
@@ -1176,16 +1176,16 @@ class VideoEncodeAcceleratorTestEnvironment : public ::testing::Environment {
// - If true, switch framerate mid-stream.
class VideoEncodeAcceleratorTest
: public ::testing::TestWithParam<
- Tuple7<int, bool, int, bool, bool, bool, bool> > {};
+ Tuple<int, bool, int, bool, bool, bool, bool>> {};
TEST_P(VideoEncodeAcceleratorTest, TestSimpleEncode) {
- size_t num_concurrent_encoders = GetParam().a;
- const bool save_to_file = GetParam().b;
- const unsigned int keyframe_period = GetParam().c;
- const bool force_bitrate = GetParam().d;
- const bool test_perf = GetParam().e;
- const bool mid_stream_bitrate_switch = GetParam().f;
- const bool mid_stream_framerate_switch = GetParam().g;
+ size_t num_concurrent_encoders = get<0>(GetParam());
+ const bool save_to_file = get<1>(GetParam());
+ const unsigned int keyframe_period = get<2>(GetParam());
+ const bool force_bitrate = get<3>(GetParam());
+ const bool test_perf = get<4>(GetParam());
+ const bool mid_stream_bitrate_switch = get<5>(GetParam());
+ const bool mid_stream_framerate_switch = get<6>(GetParam());
ScopedVector<ClientStateNotification<ClientState> > notes;
ScopedVector<VEAClient> clients;

Powered by Google App Engine
This is Rietveld 408576698