internal changes

PiperOrigin-RevId: 666964347
This commit is contained in:
Francis Tsui
2024-08-23 16:52:38 -07:00
committed by Copybara-Service
parent e6a4ca846b
commit 50c1afd8bf
2 changed files with 7 additions and 0 deletions
@@ -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));
+4
View File
@@ -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;