mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
internal changes
PiperOrigin-RevId: 879877961
This commit is contained in:
committed by
Lasan Mahaliyana
parent
ad984c9714
commit
ad6a9383ed
@@ -69,7 +69,6 @@ NearbySharingService* NearbySharingServiceFactory::CreateSharingService(
|
||||
nearby_sharing_service_ = std::make_unique<NearbySharingServiceImpl>(
|
||||
std::move(service_thread), context_.get(), sharing_platform,
|
||||
nearby_identity_client_.get(),
|
||||
nearby_share_client_.get(),
|
||||
std::move(nearby_connections_manager),
|
||||
std::move(nearby_share_contact_manager), analytics_recorder,
|
||||
supports_file_sync);
|
||||
|
||||
@@ -113,7 +113,6 @@ using ::location::nearby::proto::sharing::OSType;
|
||||
using ::location::nearby::proto::sharing::ResponseToIntroduction;
|
||||
using ::location::nearby::proto::sharing::SessionStatus;
|
||||
using ::nearby::sharing::api::SharingPlatform;
|
||||
using ::nearby::sharing::api::SharingRpcClient;
|
||||
using ::nearby::sharing::api::IdentityRpcClient;
|
||||
using ::nearby::sharing::proto::DataUsage;
|
||||
using ::nearby::sharing::proto::DeviceVisibility;
|
||||
@@ -237,7 +236,6 @@ NearbySharingServiceImpl::NearbySharingServiceImpl(
|
||||
SharingPlatform& sharing_platform,
|
||||
nearby::sharing::api::IdentityRpcClient* absl_nonnull
|
||||
nearby_identity_client,
|
||||
nearby::sharing::api::SharingRpcClient* absl_nonnull nearby_share_client,
|
||||
std::unique_ptr<NearbyConnectionsManager> nearby_connections_manager,
|
||||
std::unique_ptr<NearbyShareContactManager> contact_manager,
|
||||
analytics::AnalyticsRecorder* analytics_recorder, bool supports_file_sync)
|
||||
@@ -249,7 +247,7 @@ NearbySharingServiceImpl::NearbySharingServiceImpl(
|
||||
analytics_recorder_(*analytics_recorder),
|
||||
supports_file_sync_(supports_file_sync),
|
||||
nearby_connections_manager_(std::move(nearby_connections_manager)),
|
||||
nearby_share_client_(nearby_share_client),
|
||||
nearby_identity_client_(nearby_identity_client),
|
||||
local_device_data_manager_(
|
||||
NearbyShareLocalDeviceDataManagerImpl::Factory::Create(
|
||||
preference_manager_, account_manager_, device_info_)),
|
||||
|
||||
@@ -111,7 +111,6 @@ class NearbySharingServiceImpl
|
||||
nearby::sharing::api::SharingPlatform& sharing_platform,
|
||||
nearby::sharing::api::IdentityRpcClient* absl_nonnull
|
||||
nearby_identity_client,
|
||||
nearby::sharing::api::SharingRpcClient* absl_nonnull nearby_share_client,
|
||||
std::unique_ptr<NearbyConnectionsManager> nearby_connections_manager,
|
||||
std::unique_ptr<NearbyShareContactManager> contact_manager,
|
||||
analytics::AnalyticsRecorder* analytics_recorder,
|
||||
@@ -423,8 +422,8 @@ class NearbySharingServiceImpl
|
||||
const bool supports_file_sync_;
|
||||
|
||||
std::unique_ptr<NearbyConnectionsManager> nearby_connections_manager_;
|
||||
nearby::sharing::api::SharingRpcClient* absl_nonnull const
|
||||
nearby_share_client_;
|
||||
nearby::sharing::api::IdentityRpcClient* absl_nonnull const
|
||||
nearby_identity_client_;
|
||||
std::unique_ptr<NearbyShareLocalDeviceDataManager> local_device_data_manager_;
|
||||
std::unique_ptr<NearbyShareContactManager> contact_manager_;
|
||||
std::unique_ptr<NearbyShareCertificateManager> certificate_manager_;
|
||||
|
||||
@@ -484,7 +484,7 @@ class NearbySharingServiceImplTest : public testing::Test {
|
||||
std::unique_ptr<FakeTaskRunner> task_runner) {
|
||||
return std::make_unique<NearbySharingServiceImpl>(
|
||||
std::move(task_runner), &fake_context_, mock_sharing_platform_,
|
||||
&nearby_identity_client_, &nearby_share_client_,
|
||||
&nearby_identity_client_,
|
||||
absl::WrapUnique(fake_nearby_connections_manager_),
|
||||
absl::WrapUnique(contact_manager_), analytics_recorder_.get(),
|
||||
/*supports_file_sync=*/false);
|
||||
@@ -1280,7 +1280,6 @@ class NearbySharingServiceImplTest : public testing::Test {
|
||||
std::queue<PayloadInfo> written_payloads_
|
||||
ABSL_GUARDED_BY(connection_output_mutex_);
|
||||
FakeNearbyIdentityClient nearby_identity_client_;
|
||||
FakeNearbyShareClient nearby_share_client_;
|
||||
};
|
||||
|
||||
struct ValidSendSurfaceTestData {
|
||||
|
||||
Reference in New Issue
Block a user