mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
internal changes
PiperOrigin-RevId: 666964347
This commit is contained in:
committed by
Copybara-Service
parent
e6a4ca846b
commit
50c1afd8bf
@@ -49,6 +49,9 @@ class MockSharingPlatform : public SharingPlatform {
|
||||
MockSharingPlatform& operator=(const MockSharingPlatform&) = delete;
|
||||
~MockSharingPlatform() override = default;
|
||||
|
||||
MOCK_METHOD(void, InitProductIdGetter,
|
||||
(absl::string_view (*product_id_getter)()), (override));
|
||||
|
||||
MOCK_METHOD(void, InitLogging, (absl::string_view log_file_base_name),
|
||||
(override));
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ class SharingPlatform {
|
||||
public:
|
||||
virtual ~SharingPlatform() = default;
|
||||
|
||||
// Provide a function ptr that is used to retrieve the Omaha product ID.
|
||||
virtual void InitProductIdGetter(
|
||||
absl::string_view (*product_id_getter)()) = 0;
|
||||
|
||||
// This function should only be called once.
|
||||
virtual void InitLogging(absl::string_view log_file_base_name) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user