Put UntypedFunction in untyped_function.h, not function.h

This will make it easier to find stuff...

Bug: webrtc:11943
Change-Id: I4f1ae80b40b4966cb2d8db36701bbc02ac148df6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184512
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32137}
This commit is contained in:
Karl Wiberg 2020-09-18 10:03:16 +02:00 committed by Commit Bot
parent 9996352602
commit 70026f9d14
5 changed files with 12 additions and 12 deletions

View File

@ -539,7 +539,6 @@ if (rtc_include_tests) {
"p2p:libstunprober_unittests",
"p2p:rtc_p2p_unittests",
"rtc_base:cancer_stick_castle_unittests",
"rtc_base:function_unittest",
"rtc_base:rtc_base_approved_unittests",
"rtc_base:rtc_base_unittests",
"rtc_base:rtc_json_unittests",
@ -547,6 +546,7 @@ if (rtc_include_tests) {
"rtc_base:rtc_operations_chain_unittests",
"rtc_base:rtc_task_queue_unittests",
"rtc_base:sigslot_unittest",
"rtc_base:untyped_function_unittest",
"rtc_base:weak_ptr_unittests",
"rtc_base/experiments:experiments_unittests",
"rtc_base/synchronization:sequence_checker_unittests",

View File

@ -43,8 +43,8 @@ rtc_source_set("ignore_wundef") {
sources = [ "ignore_wundef.h" ]
}
rtc_source_set("function") {
sources = [ "function.h" ]
rtc_source_set("untyped_function") {
sources = [ "untyped_function.h" ]
deps = [ "system:assume" ]
}
@ -54,7 +54,7 @@ rtc_source_set("cancer_stick_castle") {
"cancer_stick_castle.h",
]
deps = [
":function",
":untyped_function",
"../api:function_view",
"system:assume",
]
@ -1171,11 +1171,11 @@ if (rtc_include_tests) {
]
}
rtc_library("function_unittest") {
rtc_library("untyped_function_unittest") {
testonly = true
sources = [ "function_unittest.cc" ]
sources = [ "untyped_function_unittest.cc" ]
deps = [
":function",
":untyped_function",
"../test:test_support",
]
}

View File

@ -15,8 +15,8 @@
#include <vector>
#include "api/function_view.h"
#include "rtc_base/function.h"
#include "rtc_base/system/assume.h"
#include "rtc_base/untyped_function.h"
namespace webrtc {
namespace cancer_stick_castle_impl {

View File

@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef RTC_BASE_FUNCTION_H_
#define RTC_BASE_FUNCTION_H_
#ifndef RTC_BASE_UNTYPED_FUNCTION_H_
#define RTC_BASE_UNTYPED_FUNCTION_H_
#include <memory>
#include <type_traits>
@ -220,4 +220,4 @@ class UntypedFunction final {
} // namespace webrtc
#endif // RTC_BASE_FUNCTION_H_
#endif // RTC_BASE_UNTYPED_FUNCTION_H_

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "rtc_base/function.h"
#include "rtc_base/untyped_function.h"
#include <memory>
#include <vector>