analytics: Implement to pass values for OperatoinResultWithMedium.

PiperOrigin-RevId: 704304596
This commit is contained in:
Edwin Wu
2024-12-09 09:02:05 -08:00
committed by Copybara-Service
parent 196dda9af5
commit 9a434f3ec3
9 changed files with 153 additions and 24 deletions
@@ -210,8 +210,9 @@ class ClientProxyTest : public ::testing::TestWithParam<FeatureFlags::Flags> {
.info = ByteArray{"advertising endpoint name"},
.id = client->GetLocalEndpointId(),
};
client->StartedAdvertising(service_id_, strategy_, listener,
absl::MakeSpan(mediums_), advertising_options);
client->StartedAdvertising(
service_id_, strategy_, listener, absl::MakeSpan(mediums_),
/*operation_result_with_medium=*/{}, advertising_options);
return endpoint;
}
@@ -256,7 +257,8 @@ class ClientProxyTest : public ::testing::TestWithParam<FeatureFlags::Flags> {
.id = client->GetLocalEndpointId(),
};
client->StartedDiscovery(service_id_, strategy_, std::move(listener),
absl::MakeSpan(mediums_));
absl::MakeSpan(mediums_),
/*operation_result_with_medium=*/{});
return endpoint;
}
@@ -607,7 +609,7 @@ TEST_F(ClientProxyTest, ResetClearsState) {
}
TEST_F(ClientProxyTest, StartedAdvertisingChangesStateFromIdle) {
client1()->StartedAdvertising(service_id_, strategy_, {}, {});
client1()->StartedAdvertising(service_id_, strategy_, {}, {}, {});
EXPECT_TRUE(client1()->IsAdvertising());
EXPECT_FALSE(client1()->IsDiscovering());
@@ -616,7 +618,7 @@ TEST_F(ClientProxyTest, StartedAdvertisingChangesStateFromIdle) {
}
TEST_F(ClientProxyTest, StartedDiscoveryChangesStateFromIdle) {
client1()->StartedDiscovery(service_id_, strategy_, {}, {});
client1()->StartedDiscovery(service_id_, strategy_, {}, {}, {});
EXPECT_FALSE(client1()->IsAdvertising());
EXPECT_TRUE(client1()->IsDiscovering());