Remove webrtc::webrtc_pc_e2e::GetCurrentTestName().

After https://webrtc-review.googlesource.com/c/src/+/287126, this is not
neeed anymore.

Bug: b/237982523, webrtc:14757
Change-Id: Ia91f2b09862d7d705d07f10f71f02b41f3c1c096
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/287128
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38869}
This commit is contained in:
Mirko Bonadei 2022-12-10 11:39:29 +01:00 committed by WebRTC LUCI CQ
parent 35f769c69a
commit e9dc70b220
3 changed files with 1 additions and 38 deletions

View File

@ -10,11 +10,7 @@ import("../../../webrtc.gni")
rtc_library("metric_metadata_keys") {
testonly = true
sources = [
"metric_metadata_keys.cc",
"metric_metadata_keys.h",
]
deps = [ "../..:test_support" ]
sources = [ "metric_metadata_keys.h" ]
}
if (!build_with_chromium) {

View File

@ -1,27 +0,0 @@
/*
* Copyright (c) 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.
*/
#include "test/pc/e2e/metric_metadata_keys.h"
#include <string>
#include "test/gtest.h"
namespace webrtc {
namespace webrtc_pc_e2e {
std::string GetCurrentTestName() {
const testing::TestInfo* test_info =
testing::UnitTest::GetInstance()->current_test_info();
return test_info->name();
}
} // namespace webrtc_pc_e2e
} // namespace webrtc

View File

@ -15,12 +15,6 @@
namespace webrtc {
namespace webrtc_pc_e2e {
// TODO(bugs.webrtc.org/14757): Move this function to a better location once
// kExperimentalTestNameMetadataKey has been removed (this is here just for
// convenience since it is the value of the kExperimentalTestNameMetadataKey
// metadata entries).
std::string GetCurrentTestName();
// All metadata fields are present only if applicable for particular metric.
class MetricMetadataKey {
public: