mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Clean up test for apis added by Analytics.
PiperOrigin-RevId: 420187861
This commit is contained in:
committed by
Copybara-Service
parent
acc6f2de9a
commit
fa2b583245
@@ -24,7 +24,6 @@
|
|||||||
#include "platform/public/logging.h"
|
#include "platform/public/logging.h"
|
||||||
#include "platform/public/mutex.h"
|
#include "platform/public/mutex.h"
|
||||||
#include "platform/public/mutex_lock.h"
|
#include "platform/public/mutex_lock.h"
|
||||||
#include "proto/connections_enums.pb.h"
|
|
||||||
|
|
||||||
namespace location {
|
namespace location {
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include "platform/base/bluetooth_utils.h"
|
#include "platform/base/bluetooth_utils.h"
|
||||||
#include "platform/public/logging.h"
|
#include "platform/public/logging.h"
|
||||||
#include "platform/public/system_clock.h"
|
#include "platform/public/system_clock.h"
|
||||||
#include "proto/connections_enums.pb.h"
|
|
||||||
|
|
||||||
namespace location {
|
namespace location {
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -52,18 +52,14 @@ class FakeEndpointChannel : public EndpointChannel {
|
|||||||
void Close(proto::connections::DisconnectionReason reason) override {
|
void Close(proto::connections::DisconnectionReason reason) override {
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
proto::connections::ConnectionTechnology GetTechnology() const override {
|
proto::connections::ConnectionTechnology GetTechnology() const override {
|
||||||
return proto::connections::ConnectionTechnology::
|
return proto::connections::ConnectionTechnology::
|
||||||
CONNECTION_TECHNOLOGY_BLE_GATT;
|
CONNECTION_TECHNOLOGY_BLE_GATT;
|
||||||
}
|
}
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
proto::connections::ConnectionBand GetBand() const override {
|
proto::connections::ConnectionBand GetBand() const override {
|
||||||
return proto::connections::ConnectionBand::CONNECTION_BAND_CELLULAR_BAND_2G;
|
return proto::connections::ConnectionBand::CONNECTION_BAND_CELLULAR_BAND_2G;
|
||||||
}
|
}
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
int GetFrequency() const override { return 0; }
|
int GetFrequency() const override { return 0; }
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
int GetTryCount() const override { return 0; }
|
int GetTryCount() const override { return 0; }
|
||||||
std::string GetType() const override { return "fake-channel-type"; }
|
std::string GetType() const override { return "fake-channel-type"; }
|
||||||
std::string GetName() const override { return "fake-channel"; }
|
std::string GetName() const override { return "fake-channel"; }
|
||||||
|
|||||||
@@ -53,15 +53,11 @@ class MockEndpointChannel : public EndpointChannel {
|
|||||||
MOCK_METHOD(Exception, Write, (const ByteArray& data), (override));
|
MOCK_METHOD(Exception, Write, (const ByteArray& data), (override));
|
||||||
MOCK_METHOD(void, Close, (), (override));
|
MOCK_METHOD(void, Close, (), (override));
|
||||||
MOCK_METHOD(void, Close, (DisconnectionReason reason), (override));
|
MOCK_METHOD(void, Close, (DisconnectionReason reason), (override));
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
MOCK_METHOD(proto::connections::ConnectionTechnology, GetTechnology, (),
|
MOCK_METHOD(proto::connections::ConnectionTechnology, GetTechnology, (),
|
||||||
(const override));
|
(const override));
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
MOCK_METHOD(proto::connections::ConnectionBand, GetBand, (),
|
MOCK_METHOD(proto::connections::ConnectionBand, GetBand, (),
|
||||||
(const override));
|
(const override));
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
MOCK_METHOD(int, GetFrequency, (), (const override));
|
MOCK_METHOD(int, GetFrequency, (), (const override));
|
||||||
// TODO(jfcarroll): This needs to be fixed properly
|
|
||||||
MOCK_METHOD(int, GetTryCount, (), (const override));
|
MOCK_METHOD(int, GetTryCount, (), (const override));
|
||||||
MOCK_METHOD(std::string, GetType, (), (const override));
|
MOCK_METHOD(std::string, GetType, (), (const override));
|
||||||
MOCK_METHOD(std::string, GetName, (), (const override));
|
MOCK_METHOD(std::string, GetName, (), (const override));
|
||||||
|
|||||||
Reference in New Issue
Block a user