Remove the legacy internal GTEST_DISALLOW_* macros
PiperOrigin-RevId: 443715444 Change-Id: I3ffd54b63d2728ae4a668ee7875c8c3c8188087c
This commit is contained in:
committed by
Copybara-Service
parent
b85864c647
commit
bf66935e07
@@ -598,7 +598,9 @@ class TestGenerationEnvironment : public ::testing::Environment {
|
||||
int tear_down_count_;
|
||||
int test_body_count_;
|
||||
|
||||
GTEST_DISALLOW_COPY_AND_ASSIGN_(TestGenerationEnvironment);
|
||||
TestGenerationEnvironment(const TestGenerationEnvironment&) = delete;
|
||||
TestGenerationEnvironment& operator=(const TestGenerationEnvironment&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
const int test_generation_params[] = {36, 42, 72};
|
||||
@@ -663,7 +665,8 @@ class TestGenerationTest : public TestWithParam<int> {
|
||||
static vector<int> collected_parameters_;
|
||||
|
||||
private:
|
||||
GTEST_DISALLOW_COPY_AND_ASSIGN_(TestGenerationTest);
|
||||
TestGenerationTest(const TestGenerationTest&) = delete;
|
||||
TestGenerationTest& operator=(const TestGenerationTest&) = delete;
|
||||
};
|
||||
vector<int> TestGenerationTest::collected_parameters_;
|
||||
|
||||
|
||||
@@ -1186,7 +1186,8 @@ class DestructorCall {
|
||||
#endif
|
||||
static std::vector<DestructorCall*>* const list_;
|
||||
|
||||
GTEST_DISALLOW_COPY_AND_ASSIGN_(DestructorCall);
|
||||
DestructorCall(const DestructorCall&) = delete;
|
||||
DestructorCall& operator=(const DestructorCall&) = delete;
|
||||
};
|
||||
|
||||
std::vector<DestructorCall*>* const DestructorCall::list_ =
|
||||
|
||||
@@ -6884,7 +6884,8 @@ class SequenceTestingListener : public EmptyTestEventListener {
|
||||
std::vector<std::string>* vector_;
|
||||
const char* const id_;
|
||||
|
||||
GTEST_DISALLOW_COPY_AND_ASSIGN_(SequenceTestingListener);
|
||||
SequenceTestingListener(const SequenceTestingListener&) = delete;
|
||||
SequenceTestingListener& operator=(const SequenceTestingListener&) = delete;
|
||||
};
|
||||
|
||||
TEST(EventListenerTest, AppendKeepsOrder) {
|
||||
|
||||
Reference in New Issue
Block a user