using find api/ -name "*.h" -o -name "*.cc" | grep -v priority.h | xargs tools_webrtc/iwyu/apply-include-cleaner followed by tools_webrtc/gn_check_autofix.py -C out/Default/ and git cl format Manual changes: - api/test/compile_all_headers.cc: add IWYU keep pragma - api/video/nv12_buffer.cc: fix include part of libyuv/convert_from.h - DEPS changes priority.h is excluded as it is currently a header-only target. Will be fixed as a follow-up. A generated histogram.pb.h is included from api/test/metrics/chrome_perf_dashboard_metrics_exporter_test.cc since it is not directly exported by catapult. BUG=webrtc:42226242 Change-Id: Idce13d892c61ae71bf4f39bd5ffa4638a3d7f8fe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/382120 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Cr-Commit-Position: refs/heads/main@{#44374}
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/*
|
|
* Copyright 2022 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_TASK_QUEUE_TEST_MOCK_TASK_QUEUE_BASE_H_
|
|
#define API_TASK_QUEUE_TEST_MOCK_TASK_QUEUE_BASE_H_
|
|
|
|
#include "absl/functional/any_invocable.h"
|
|
#include "api/location.h"
|
|
#include "api/task_queue/task_queue_base.h"
|
|
#include "api/units/time_delta.h"
|
|
#include "test/gmock.h"
|
|
|
|
namespace webrtc {
|
|
|
|
class MockTaskQueueBase : public TaskQueueBase {
|
|
public:
|
|
using TaskQueueBase::PostDelayedTaskTraits;
|
|
using TaskQueueBase::PostTaskTraits;
|
|
|
|
MOCK_METHOD(void, Delete, (), (override));
|
|
MOCK_METHOD(void,
|
|
PostTaskImpl,
|
|
(absl::AnyInvocable<void() &&>,
|
|
const PostTaskTraits&,
|
|
const Location&),
|
|
(override));
|
|
MOCK_METHOD(void,
|
|
PostDelayedTaskImpl,
|
|
(absl::AnyInvocable<void() &&>,
|
|
TimeDelta,
|
|
const PostDelayedTaskTraits&,
|
|
const Location&),
|
|
(override));
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_TASK_QUEUE_TEST_MOCK_TASK_QUEUE_BASE_H_
|