mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Remove unnecessary DevicInfoImpl class.
PiperOrigin-RevId: 892102193
This commit is contained in:
committed by
Copybara-Service
parent
ac70b1f91f
commit
f088ef3b74
@@ -42,6 +42,7 @@ cc_library(
|
||||
"//internal/base:file_path",
|
||||
"//internal/platform:mac_address",
|
||||
"//internal/platform:types",
|
||||
"//internal/platform/implementation:types",
|
||||
"//location/nearby/sharing/lib/account:account_manager",
|
||||
"//location/nearby/sharing/lib/sync:sync_binding_prefs_cc_proto",
|
||||
"//sharing/proto:share_cc_proto",
|
||||
@@ -71,16 +72,10 @@ cc_library(
|
||||
"//internal/base:file_path",
|
||||
"//internal/platform:mac_address",
|
||||
"//internal/platform:types",
|
||||
"//internal/platform/implementation:types",
|
||||
"//location/nearby/sharing/lib/account:account_manager",
|
||||
"//sharing/analytics",
|
||||
"//sharing/internal/public:logging",
|
||||
"//sharing/proto:share_cc_proto",
|
||||
"@com_google_absl//absl/base:core_headers",
|
||||
"@com_google_absl//absl/functional:any_invocable",
|
||||
"@com_google_absl//absl/status",
|
||||
"@com_google_absl//absl/status:statusor",
|
||||
"@com_google_absl//absl/strings",
|
||||
"@com_google_absl//absl/synchronization",
|
||||
"@com_google_absl//absl/types:span",
|
||||
"@com_google_googletest//:gtest_for_library_testonly",
|
||||
],
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "gmock/gmock.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/base/file_path.h"
|
||||
#include "internal/platform/device_info.h"
|
||||
#include "internal/platform/implementation/device_info.h"
|
||||
#include "internal/platform/task_runner.h"
|
||||
#include "sharing/internal/api/app_info.h"
|
||||
#include "sharing/internal/api/bluetooth_adapter.h"
|
||||
@@ -72,7 +72,7 @@ class MockSharingPlatform : public SharingPlatform {
|
||||
|
||||
MOCK_METHOD(AccountManager&, GetAccountManager, (), (override));
|
||||
MOCK_METHOD(TaskRunner&, GetDefaultTaskRunner, (), (override));
|
||||
MOCK_METHOD(nearby::DeviceInfo&, GetDeviceInfo, (), (override));
|
||||
MOCK_METHOD(nearby::api::DeviceInfo&, GetDeviceInfo, (), (override));
|
||||
MOCK_METHOD(std::unique_ptr<PublicCertificateDatabase>,
|
||||
CreatePublicCertificateDatabase, (const FilePath& database_path),
|
||||
(override));
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "location/nearby/sharing/lib/account/account_manager.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/base/file_path.h"
|
||||
#include "internal/platform/device_info.h"
|
||||
#include "internal/platform/implementation/device_info.h"
|
||||
#include "internal/platform/task_runner.h"
|
||||
#include "sharing/internal/api/app_info.h"
|
||||
#include "sharing/internal/api/bluetooth_adapter.h"
|
||||
@@ -65,7 +65,7 @@ class SharingPlatform {
|
||||
virtual PreferenceManager& GetPreferenceManager() = 0;
|
||||
virtual AccountManager& GetAccountManager() = 0;
|
||||
virtual TaskRunner& GetDefaultTaskRunner() = 0;
|
||||
virtual nearby::DeviceInfo& GetDeviceInfo() = 0;
|
||||
virtual nearby::api::DeviceInfo& GetDeviceInfo() = 0;
|
||||
virtual std::unique_ptr<PublicCertificateDatabase>
|
||||
CreatePublicCertificateDatabase(const FilePath& database_path) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user