mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix bug report for unicode path.
PiperOrigin-RevId: 767840767
This commit is contained in:
committed by
Copybara-Service
parent
18bfd5dffa
commit
c617368801
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user