Fix bug report for unicode path.

PiperOrigin-RevId: 767840767
This commit is contained in:
Francis Tsui
2025-06-05 18:01:54 -07:00
committed by Copybara-Service
parent 18bfd5dffa
commit c617368801
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
#include <string>
#include "gmock/gmock.h"
#include "absl/strings/string_view.h"
#include "internal/base/file_path.h"
#include "sharing/internal/api/system_info.h"
namespace nearby::sharing::api {
@@ -57,7 +57,7 @@ class MockSystemInfo : public nearby::api::SystemInfo {
MOCK_METHOD(std::list<DriverInfo>, GetBluetoothDriverInfos, (), (override));
MOCK_METHOD(std::list<DriverInfo>, GetNetworkDriverInfos, (), (override));
MOCK_METHOD(void, GetBatteryUsageReport, (absl::string_view save_path),
MOCK_METHOD(void, GetBatteryUsageReport, (const FilePath& save_path),
(override));
};
+2 -2
View File
@@ -24,7 +24,7 @@
#include <sstream>
#include <string>
#include "absl/strings/string_view.h"
#include "internal/base/file_path.h"
namespace nearby {
namespace api {
@@ -78,7 +78,7 @@ class SystemInfo {
virtual std::list<DriverInfo> GetBluetoothDriverInfos() = 0;
virtual std::list<DriverInfo> GetNetworkDriverInfos() = 0;
virtual void GetBatteryUsageReport(absl::string_view save_path) = 0;
virtual void GetBatteryUsageReport(const FilePath& save_path) = 0;
// Outputs all system information to a readable string.
std::string Dump() {