Replace calls to deprecated googletest APIs.
SetUpTestCase/TearDownTestCase -> SetUpTestSuite/TearDownTestSuite. TBR=kwiberg@webrtc.org Bug: None Change-Id: I6d873c62d6b5c9d7100624d00e1c4894d686a9f1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140041 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28189}
This commit is contained in:
parent
7e8de0bf2d
commit
71061bcca8
@ -120,7 +120,7 @@ class SctpTransportTest : public ::testing::Test, public sigslot::has_slots<> {
|
||||
protected:
|
||||
// usrsctp uses the NSS random number generator on non-Android platforms,
|
||||
// so we need to initialize SSL.
|
||||
static void SetUpTestCase() {}
|
||||
static void SetUpTestSuite() {}
|
||||
|
||||
void SetupConnectedTransportsWithTwoStreams() {
|
||||
SetupConnectedTransportsWithTwoStreams(kTransport1Port, kTransport2Port);
|
||||
|
||||
@ -345,12 +345,9 @@ class ApmTest : public ::testing::Test {
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
static void SetUpTestCase() {
|
||||
}
|
||||
static void SetUpTestSuite() {}
|
||||
|
||||
static void TearDownTestCase() {
|
||||
ClearTempFiles();
|
||||
}
|
||||
static void TearDownTestSuite() { ClearTempFiles(); }
|
||||
|
||||
// Used to select between int and float interface tests.
|
||||
enum Format {
|
||||
@ -1932,7 +1929,7 @@ class AudioProcessingTest
|
||||
|
||||
virtual ~AudioProcessingTest() {}
|
||||
|
||||
static void SetUpTestCase() {
|
||||
static void SetUpTestSuite() {
|
||||
// Create all needed output reference files.
|
||||
const int kNativeRates[] = {8000, 16000, 32000, 48000};
|
||||
const size_t kNumChannels[] = {1, 2};
|
||||
@ -1953,9 +1950,7 @@ class AudioProcessingTest
|
||||
ClearTempOutFiles();
|
||||
}
|
||||
|
||||
static void TearDownTestCase() {
|
||||
ClearTempFiles();
|
||||
}
|
||||
static void TearDownTestSuite() { ClearTempFiles(); }
|
||||
|
||||
// Runs a process pass on files with the given parameters and dumps the output
|
||||
// to a file specified with |output_file_prefix|. Both forward and reverse
|
||||
|
||||
@ -133,7 +133,7 @@ class StunPortTestBase : public ::testing::Test, public sigslot::has_slots<> {
|
||||
}
|
||||
|
||||
protected:
|
||||
static void SetUpTestCase() {
|
||||
static void SetUpTestSuite() {
|
||||
// Ensure the RNG is inited.
|
||||
rtc::InitRandom(NULL, 0);
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ class FileUtilsTest : public ::testing::Test {
|
||||
FileUtilsTest() {}
|
||||
~FileUtilsTest() override {}
|
||||
// Runs before the first test
|
||||
static void SetUpTestCase() {
|
||||
static void SetUpTestSuite() {
|
||||
original_working_dir_ = webrtc::test::WorkingDir();
|
||||
}
|
||||
void SetUp() override { ASSERT_EQ(chdir(original_working_dir_.c_str()), 0); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user