mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 09:07:52 +01:00
Change PeerConnectionFactoryForUsageHistogramTest to not inherit RefCountedObject
Bug: webrtc:12701 Change-Id: Icea3774c5c1acb6854e50116e7defaf4846c990f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256684 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36349}
This commit is contained in:
parent
ad3f490946
commit
df41187e4a
1 changed files with 4 additions and 4 deletions
|
@ -75,10 +75,10 @@ int MakeUsageFingerprint(std::set<UsageEvent> events) {
|
|||
}
|
||||
|
||||
class PeerConnectionFactoryForUsageHistogramTest
|
||||
: public rtc::RefCountedObject<PeerConnectionFactory> {
|
||||
: public PeerConnectionFactory {
|
||||
public:
|
||||
PeerConnectionFactoryForUsageHistogramTest()
|
||||
: rtc::RefCountedObject<PeerConnectionFactory>([] {
|
||||
: PeerConnectionFactory([] {
|
||||
PeerConnectionFactoryDependencies dependencies;
|
||||
dependencies.network_thread = rtc::Thread::Current();
|
||||
dependencies.worker_thread = rtc::Thread::Current();
|
||||
|
@ -330,8 +330,8 @@ class PeerConnectionUsageHistogramTest : public ::testing::Test {
|
|||
const RTCConfiguration& config,
|
||||
const PeerConnectionFactoryInterface::Options factory_options,
|
||||
PeerConnectionDependencies deps) {
|
||||
rtc::scoped_refptr<PeerConnectionFactoryForUsageHistogramTest> pc_factory(
|
||||
new PeerConnectionFactoryForUsageHistogramTest());
|
||||
auto pc_factory =
|
||||
rtc::make_ref_counted<PeerConnectionFactoryForUsageHistogramTest>();
|
||||
pc_factory->SetOptions(factory_options);
|
||||
|
||||
// If no allocator is provided, one will be created using a network manager
|
||||
|
|
Loading…
Reference in a new issue