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

Unified Diff: media/gpu/video_encode_accelerator_unittest.cc

Issue 2023243002: Remove base::Tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint fix Created 4 years, 6 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 | « media/gpu/video_decode_accelerator_unittest.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/video_encode_accelerator_unittest.cc
diff --git a/media/gpu/video_encode_accelerator_unittest.cc b/media/gpu/video_encode_accelerator_unittest.cc
index 5b77463b2027e0524a67429997e9dd49b6a7419f..5776fa331e6b6f178725fc27f40d33037c711264 100644
--- a/media/gpu/video_encode_accelerator_unittest.cc
+++ b/media/gpu/video_encode_accelerator_unittest.cc
@@ -1572,18 +1572,18 @@ void VEAClient::WriteIvfFrameHeader(int frame_index, size_t frame_size) {
// - If true, verify the output frames of encoder.
class VideoEncodeAcceleratorTest
: public ::testing::TestWithParam<
- base::Tuple<int, bool, int, bool, bool, bool, bool, bool>> {};
+ std::tuple<int, bool, int, bool, bool, bool, bool, bool>> {};
TEST_P(VideoEncodeAcceleratorTest, TestSimpleEncode) {
- size_t num_concurrent_encoders = base::get<0>(GetParam());
- const bool save_to_file = base::get<1>(GetParam());
- const unsigned int keyframe_period = base::get<2>(GetParam());
- const bool force_bitrate = base::get<3>(GetParam());
- const bool test_perf = base::get<4>(GetParam());
- const bool mid_stream_bitrate_switch = base::get<5>(GetParam());
- const bool mid_stream_framerate_switch = base::get<6>(GetParam());
+ size_t num_concurrent_encoders = std::get<0>(GetParam());
+ const bool save_to_file = std::get<1>(GetParam());
+ const unsigned int keyframe_period = std::get<2>(GetParam());
+ const bool force_bitrate = std::get<3>(GetParam());
+ const bool test_perf = std::get<4>(GetParam());
+ const bool mid_stream_bitrate_switch = std::get<5>(GetParam());
+ const bool mid_stream_framerate_switch = std::get<6>(GetParam());
const bool verify_output =
- base::get<7>(GetParam()) || g_env->verify_all_output();
+ std::get<7>(GetParam()) || g_env->verify_all_output();
ScopedVector<ClientStateNotification<ClientState>> notes;
ScopedVector<VEAClient> clients;
@@ -1644,65 +1644,65 @@ INSTANTIATE_TEST_CASE_P(
SimpleEncode,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, true, 0, false, false, false, false, false),
- base::MakeTuple(1, true, 0, false, false, false, false, true)));
+ std::make_tuple(1, true, 0, false, false, false, false, false),
+ std::make_tuple(1, true, 0, false, false, false, false, true)));
INSTANTIATE_TEST_CASE_P(
EncoderPerf,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 0, false, true, false, false, false)));
+ std::make_tuple(1, false, 0, false, true, false, false, false)));
INSTANTIATE_TEST_CASE_P(
ForceKeyframes,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 10, false, false, false, false, false)));
+ std::make_tuple(1, false, 10, false, false, false, false, false)));
INSTANTIATE_TEST_CASE_P(
ForceBitrate,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 0, true, false, false, false, false)));
+ std::make_tuple(1, false, 0, true, false, false, false, false)));
INSTANTIATE_TEST_CASE_P(
MidStreamParamSwitchBitrate,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 0, true, false, true, false, false)));
+ std::make_tuple(1, false, 0, true, false, true, false, false)));
INSTANTIATE_TEST_CASE_P(
MidStreamParamSwitchFPS,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 0, true, false, false, true, false)));
+ std::make_tuple(1, false, 0, true, false, false, true, false)));
INSTANTIATE_TEST_CASE_P(
MultipleEncoders,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(3, false, 0, false, false, false, false, false),
- base::MakeTuple(3, false, 0, true, false, false, true, false),
- base::MakeTuple(3, false, 0, true, false, true, false, false)));
+ std::make_tuple(3, false, 0, false, false, false, false, false),
+ std::make_tuple(3, false, 0, true, false, false, true, false),
+ std::make_tuple(3, false, 0, true, false, true, false, false)));
#else
INSTANTIATE_TEST_CASE_P(
SimpleEncode,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, true, 0, false, false, false, false, false),
- base::MakeTuple(1, true, 0, false, false, false, false, true)));
+ std::make_tuple(1, true, 0, false, false, false, false, false),
+ std::make_tuple(1, true, 0, false, false, false, false, true)));
INSTANTIATE_TEST_CASE_P(
EncoderPerf,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(1, false, 0, false, true, false, false, false)));
+ std::make_tuple(1, false, 0, false, true, false, false, false)));
INSTANTIATE_TEST_CASE_P(
MultipleEncoders,
VideoEncodeAcceleratorTest,
::testing::Values(
- base::MakeTuple(3, false, 0, false, false, false, false, false)));
+ std::make_tuple(3, false, 0, false, false, false, false, false)));
#endif
// TODO(posciak): more tests:
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698