Skip to content

Commit

Permalink
Add RPC logging.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 687376548
  • Loading branch information
ftsui authored and copybara-github committed Oct 18, 2024
1 parent e05351a commit 76e32d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/platform/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ cc_library(
"//internal/weave:__subpackages__",
"//location/nearby/apps:__subpackages__",
"//location/nearby/cpp:__subpackages__",
"//location/nearby/sharing/sdk/test_client:__pkg__",
"//location/nearby/sharing/sdk:__subpackages__",
"//location/nearby/testing/nearby_native:__subpackages__",
"//presence:__subpackages__",
"//sharing:__subpackages__",
Expand Down
4 changes: 2 additions & 2 deletions sharing/nearby_sharing_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@

#include "absl/base/attributes.h"
#include "absl/functional/any_invocable.h"
#include "absl/strings/string_view.h"
#include "absl/time/time.h"
#include "internal/platform/clock.h"
#include "sharing/advertisement.h"
#include "sharing/attachment_container.h"
#include "sharing/internal/api/sharing_rpc_notifier.h"
#include "sharing/local_device_data/nearby_share_local_device_data_manager.h"
#include "sharing/nearby_sharing_settings.h"
#include "sharing/share_target.h"
#include "sharing/share_target_discovered_callback.h"
#include "sharing/transfer_update_callback.h"

Expand Down Expand Up @@ -255,6 +254,7 @@ class NearbySharingService {
virtual NearbyShareContactManager* GetContactManager() = 0;
virtual NearbyShareCertificateManager* GetCertificateManager() = 0;
virtual AccountManager* GetAccountManager() = 0;
virtual Clock& GetClock() = 0;
};

} // namespace sharing
Expand Down
2 changes: 2 additions & 0 deletions sharing/nearby_sharing_service_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "absl/time/time.h"
#include "absl/types/span.h"
#include "internal/base/observer_list.h"
#include "internal/platform/clock.h"
#include "internal/platform/device_info.h"
#include "internal/platform/implementation/account_manager.h"
#include "internal/platform/task_runner.h"
Expand Down Expand Up @@ -171,6 +172,7 @@ class NearbySharingServiceImpl
NearbyShareContactManager* GetContactManager() override;
NearbyShareCertificateManager* GetCertificateManager() override;
AccountManager* GetAccountManager() override;
Clock& GetClock() override { return *context_->GetClock(); }

// NearbyConnectionsManager::IncomingConnectionListener:
void OnIncomingConnection(absl::string_view endpoint_id,
Expand Down

0 comments on commit 76e32d5

Please sign in to comment.