aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/gprpp/ref_counted_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/gprpp/ref_counted_test.cc')
-rw-r--r--test/core/gprpp/ref_counted_test.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/core/gprpp/ref_counted_test.cc b/test/core/gprpp/ref_counted_test.cc
index 62a3ea4d53..1955be3311 100644
--- a/test/core/gprpp/ref_counted_test.cc
+++ b/test/core/gprpp/ref_counted_test.cc
@@ -74,9 +74,9 @@ TEST(RefCountedNonPolymorphic, ExtraRef) {
// things build properly in both debug and non-debug cases.
DebugOnlyTraceFlag foo_tracer(true, "foo");
-class FooWithTracing : public RefCountedWithTracing<FooWithTracing> {
+class FooWithTracing : public RefCounted<FooWithTracing> {
public:
- FooWithTracing() : RefCountedWithTracing(&foo_tracer) {}
+ FooWithTracing() : RefCounted(&foo_tracer) {}
};
TEST(RefCountedWithTracing, Basic) {
@@ -92,10 +92,9 @@ TEST(RefCountedWithTracing, Basic) {
}
class FooNonPolymorphicWithTracing
- : public RefCountedWithTracing<FooNonPolymorphicWithTracing,
- NonPolymorphicRefCount> {
+ : public RefCounted<FooNonPolymorphicWithTracing, NonPolymorphicRefCount> {
public:
- FooNonPolymorphicWithTracing() : RefCountedWithTracing(&foo_tracer) {}
+ FooNonPolymorphicWithTracing() : RefCounted(&foo_tracer) {}
};
TEST(RefCountedNonPolymorphicWithTracing, Basic) {
@@ -116,7 +115,7 @@ TEST(RefCountedNonPolymorphicWithTracing, Basic) {
} // namespace grpc_core
int main(int argc, char** argv) {
- grpc_test_init(argc, argv);
+ grpc::testing::TestEnvironment env(argc, argv);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}