blob: 214f95008f9a57368a806b535fb491634dc10af4 [file] [log] [blame]
Danil Chapovalov33b716f2019-01-22 18:15:37 +01001/*
2 * Copyright 2019 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10#ifndef API_TASK_QUEUE_TASK_QUEUE_TEST_H_
11#define API_TASK_QUEUE_TASK_QUEUE_TEST_H_
12
Danil Chapovalov710f3d32019-02-06 16:00:44 +010013#include <functional>
14#include <memory>
15
Ali Tofigh4b681942022-08-23 12:57:16 +020016#include "api/field_trials_view.h"
Danil Chapovalov33b716f2019-01-22 18:15:37 +010017#include "api/task_queue/task_queue_factory.h"
18#include "test/gtest.h"
19
20namespace webrtc {
21
22// Suite of tests to verify TaskQueue implementation with.
23// Example usage:
24//
25// namespace {
26//
Danil Chapovalov710f3d32019-02-06 16:00:44 +010027// using ::testing::Values;
Danil Chapovalov33b716f2019-01-22 18:15:37 +010028// using ::webrtc::TaskQueueTest;
Danil Chapovalov710f3d32019-02-06 16:00:44 +010029//
30// std::unique_ptr<webrtc::TaskQueueFactory> CreateMyFactory();
31//
32// INSTANTIATE_TEST_SUITE_P(My, TaskQueueTest, Values(CreateMyFactory));
Danil Chapovalov33b716f2019-01-22 18:15:37 +010033//
34// } // namespace
Ali Tofigh4b681942022-08-23 12:57:16 +020035class TaskQueueTest
36 : public ::testing::TestWithParam<std::function<
37 std::unique_ptr<TaskQueueFactory>(const FieldTrialsView*)>> {};
Danil Chapovalov33b716f2019-01-22 18:15:37 +010038
39} // namespace webrtc
40
41#endif // API_TASK_QUEUE_TASK_QUEUE_TEST_H_