mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Fully qualify ::location::nearby imports.
Find and replace exercise. Replace `using location::nearby` with `using ::location::nearby` and `using <Name> = location::nearby` with `using <Name> = ::location::nearby` PiperOrigin-RevId: 490087051
This commit is contained in:
committed by
Copybara-Service
parent
39d3ef1a7c
commit
a3b6058753
@@ -30,15 +30,14 @@
|
||||
|
||||
namespace location::nearby::windows {
|
||||
|
||||
using location::nearby::ByteArray;
|
||||
using location::nearby::CountDownLatch;
|
||||
using location::nearby::connections::AdvertisingOptions;
|
||||
using location::nearby::connections::ConnectionListener;
|
||||
using location::nearby::connections::ConnectionRequestInfo;
|
||||
using location::nearby::connections::Core;
|
||||
using location::nearby::connections::ServiceControllerRouter;
|
||||
using location::nearby::connections::Status;
|
||||
using location::nearby::connections::Strategy;
|
||||
using ::location::nearby::ByteArray;
|
||||
using ::location::nearby::connections::AdvertisingOptions;
|
||||
using ::location::nearby::connections::ConnectionListener;
|
||||
using ::location::nearby::connections::ConnectionRequestInfo;
|
||||
using ::location::nearby::connections::Core;
|
||||
using ::location::nearby::connections::ServiceControllerRouter;
|
||||
using ::location::nearby::connections::Status;
|
||||
using ::location::nearby::connections::Strategy;
|
||||
|
||||
constexpr absl::string_view SERVICE_ID =
|
||||
"com.google.location.nearby.apps.helloconnections";
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace location::nearby::windows {
|
||||
|
||||
using MediumW = location::nearby::proto::connections::Medium;
|
||||
using MediumW = ::location::nearby::proto::connections::Medium;
|
||||
|
||||
// Generic type: allows definition of a feature T for every Medium.
|
||||
template <typename T>
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace location {
|
||||
namespace nearby {
|
||||
namespace analytics {
|
||||
|
||||
using Medium = location::nearby::proto::connections::Medium;
|
||||
using Medium = ::location::nearby::proto::connections::Medium;
|
||||
using PayloadType = connections::PayloadType;
|
||||
|
||||
class ThroughputRecorder {
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace {
|
||||
// pure virtual functions in order to test BaseBwuHandler's bookkeeping logic.
|
||||
class BwuHandlerImpl : public BaseBwuHandler {
|
||||
public:
|
||||
using Medium = location::nearby::proto::connections::Medium;
|
||||
using Medium = ::location::nearby::proto::connections::Medium;
|
||||
|
||||
// The arguments passed to the BwuHandler methods. Not all values are set
|
||||
// for every method.
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace connections {
|
||||
// HandleInitializeUpgradedMediumForEndpoint call.
|
||||
class FakeBwuHandler : public BaseBwuHandler {
|
||||
public:
|
||||
using Medium = location::nearby::proto::connections::Medium;
|
||||
using Medium = ::location::nearby::proto::connections::Medium;
|
||||
|
||||
// The arguments passed to the BwuHandler methods. Not all values are set for
|
||||
// every method.
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace connections {
|
||||
// output can be set.
|
||||
class FakeEndpointChannel : public EndpointChannel {
|
||||
public:
|
||||
using Medium = location::nearby::proto::connections::Medium;
|
||||
using Medium = ::location::nearby::proto::connections::Medium;
|
||||
|
||||
FakeEndpointChannel(Medium medium, const std::string& service_id)
|
||||
: medium_(medium), service_id_(service_id) {}
|
||||
|
||||
@@ -292,8 +292,8 @@ class IncomingFileInternalPayload : public InternalPayload {
|
||||
|
||||
} // namespace
|
||||
|
||||
using location::nearby::api::ImplementationPlatform;
|
||||
using location::nearby::api::OSName;
|
||||
using ::location::nearby::api::ImplementationPlatform;
|
||||
using ::location::nearby::api::OSName;
|
||||
|
||||
std::unique_ptr<InternalPayload> CreateOutgoingInternalPayload(
|
||||
Payload payload) {
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace nearby {
|
||||
namespace connections {
|
||||
namespace mediums {
|
||||
namespace webrtc_frames {
|
||||
using WebRtcSignalingFrame = location::nearby::mediums::WebRtcSignalingFrame;
|
||||
using WebRtcSignalingFrame = ::location::nearby::mediums::WebRtcSignalingFrame;
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ using WifiAwareCredentials = UpgradePathInfo::WifiAwareCredentials;
|
||||
using WifiDirectCredentials = UpgradePathInfo::WifiDirectCredentials;
|
||||
using BluetoothCredentials = UpgradePathInfo::BluetoothCredentials;
|
||||
using WebRtcCredentials = UpgradePathInfo::WebRtcCredentials;
|
||||
using Medium = location::nearby::connections::Medium;
|
||||
using Medium = ::location::nearby::connections::Medium;
|
||||
|
||||
constexpr absl::string_view kIpv4PatternString{
|
||||
"^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace location {
|
||||
namespace nearby {
|
||||
namespace connections {
|
||||
|
||||
using Medium = location::nearby::proto::connections::Medium;
|
||||
using Medium = ::location::nearby::proto::connections::Medium;
|
||||
|
||||
// Generic type: allows definition of a feature T for every Medium.
|
||||
template <typename T>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
namespace {
|
||||
|
||||
using location::nearby::ByteArray;
|
||||
using ::location::nearby::ByteArray;
|
||||
|
||||
TEST(ByteArrayTest, DefaultSizeIsZero) {
|
||||
ByteArray bytes;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include "internal/platform/implementation/submittable_executor.h"
|
||||
#include "internal/platform/runnable.h"
|
||||
|
||||
using location::nearby::Runnable;
|
||||
using location::nearby::api::ImplementationPlatform;
|
||||
using MultiThreadExecutor = location::nearby::api::SubmittableExecutor;
|
||||
using ::location::nearby::Runnable;
|
||||
using ::location::nearby::api::ImplementationPlatform;
|
||||
using MultiThreadExecutor = ::location::nearby::api::SubmittableExecutor;
|
||||
|
||||
@interface GNCMultiThreadExecutorTest : XCTestCase
|
||||
@property(atomic) int counter;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include "internal/platform/implementation/scheduled_executor.h"
|
||||
#include "internal/platform/runnable.h"
|
||||
|
||||
using location::nearby::Runnable;
|
||||
using location::nearby::api::ImplementationPlatform;
|
||||
using location::nearby::api::ScheduledExecutor;
|
||||
using ::location::nearby::Runnable;
|
||||
using ::location::nearby::api::ImplementationPlatform;
|
||||
using ::location::nearby::api::ScheduledExecutor;
|
||||
|
||||
@interface GNCScheduledExecutorTest : XCTestCase
|
||||
@property(atomic) int counter;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include "internal/platform/implementation/submittable_executor.h"
|
||||
#include "internal/platform/runnable.h"
|
||||
|
||||
using location::nearby::Runnable;
|
||||
using location::nearby::api::ImplementationPlatform;
|
||||
using SingleThreadExecutor = location::nearby::api::SubmittableExecutor;
|
||||
using ::location::nearby::Runnable;
|
||||
using ::location::nearby::api::ImplementationPlatform;
|
||||
using SingleThreadExecutor = ::location::nearby::api::SubmittableExecutor;
|
||||
|
||||
@interface GNCSingleThreadExecutorTest : XCTestCase
|
||||
@property(atomic) int counter;
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
#include "internal/platform/byte_array.h"
|
||||
#include "internal/platform/implementation/ios/utils.h"
|
||||
|
||||
using location::nearby::ByteArray;
|
||||
using location::nearby::ByteArrayFromNSData;
|
||||
using location::nearby::CppStringFromObjCString;
|
||||
using location::nearby::ObjCStringFromCppString;
|
||||
using ::location::nearby::ByteArray;
|
||||
using ::location::nearby::ByteArrayFromNSData;
|
||||
using ::location::nearby::CppStringFromObjCString;
|
||||
using ::location::nearby::ObjCStringFromCppString;
|
||||
|
||||
@interface GNCUtilsTest : XCTestCase
|
||||
@end
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
// STOP/HANG AND IS INTENDED SOLELY FOR DEBUG AND DEMONSTRATION PURPOSES. DO NOT
|
||||
// ATTEMPT TO BUILD AND RUN THIS TEST ON GOOGLE3 YOU HAVE BEEN WARNED
|
||||
|
||||
using location::nearby::windows::BluetoothDevice;
|
||||
using ::location::nearby::windows::BluetoothDevice;
|
||||
|
||||
typedef std::map<const std::string, location::nearby::api::BluetoothDevice*>
|
||||
DeviceMap;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
// using location::nearby::windows::uint64_to_mac_address_string;
|
||||
// using ::location::nearby::windows::uint64_to_mac_address_string;
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
namespace windows {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
using location::nearby::api::WifiBandType;
|
||||
using ::location::nearby::api::WifiBandType;
|
||||
|
||||
class WifiUtils {
|
||||
public:
|
||||
|
||||
@@ -35,22 +35,22 @@ namespace nearby {
|
||||
namespace presence {
|
||||
namespace {
|
||||
|
||||
using FeatureFlags = location::nearby::FeatureFlags::Flags;
|
||||
using BleOperationStatus = location::nearby::api::ble_v2::BleOperationStatus;
|
||||
using FeatureFlags = ::location::nearby::FeatureFlags::Flags;
|
||||
using BleOperationStatus = ::location::nearby::api::ble_v2::BleOperationStatus;
|
||||
using BleV2MediumStatus =
|
||||
location::nearby::MediumEnvironment::BleV2MediumStatus;
|
||||
::location::nearby::MediumEnvironment::BleV2MediumStatus;
|
||||
using ScanningSession =
|
||||
location::nearby::api::ble_v2::BleMedium::ScanningSession;
|
||||
using TxPowerLevel = location::nearby::api::ble_v2::TxPowerLevel;
|
||||
::location::nearby::api::ble_v2::BleMedium::ScanningSession;
|
||||
using TxPowerLevel = ::location::nearby::api::ble_v2::TxPowerLevel;
|
||||
using ScanningCallback =
|
||||
location::nearby::api::ble_v2::BleMedium::ScanningCallback;
|
||||
using Uuid = location::nearby::Uuid;
|
||||
using location::nearby::api::ble_v2::BleAdvertisementData;
|
||||
using location::nearby::api::ble_v2::BlePeripheral;
|
||||
::location::nearby::api::ble_v2::BleMedium::ScanningCallback;
|
||||
using Uuid = ::location::nearby::Uuid;
|
||||
using ::location::nearby::api::ble_v2::BleAdvertisementData;
|
||||
using ::location::nearby::api::ble_v2::BlePeripheral;
|
||||
using AdvertisingCallback =
|
||||
location::nearby::api::ble_v2::BleMedium::AdvertisingCallback;
|
||||
::location::nearby::api::ble_v2::BleMedium::AdvertisingCallback;
|
||||
using AdvertisingSession =
|
||||
location::nearby::api::ble_v2::BleMedium::AdvertisingSession;
|
||||
::location::nearby::api::ble_v2::BleMedium::AdvertisingSession;
|
||||
|
||||
constexpr FeatureFlags kTestCases[] = {
|
||||
FeatureFlags{},
|
||||
|
||||
@@ -45,7 +45,7 @@ using AdvertisingSession =
|
||||
using AdvertisingCallback =
|
||||
::location::nearby::api::ble_v2::BleMedium::AdvertisingCallback;
|
||||
|
||||
using CountDownLatch = location::nearby::CountDownLatch;
|
||||
using CountDownLatch = ::location::nearby::CountDownLatch;
|
||||
|
||||
class ScanManagerTest : public testing::Test {
|
||||
protected:
|
||||
|
||||
@@ -29,9 +29,9 @@ namespace nearby {
|
||||
namespace presence {
|
||||
namespace {
|
||||
|
||||
using FeatureFlags = location::nearby::FeatureFlags::Flags;
|
||||
using FeatureFlags = ::location::nearby::FeatureFlags::Flags;
|
||||
using internal::IdentityType;
|
||||
using location::nearby::MediumEnvironment;
|
||||
using ::location::nearby::MediumEnvironment;
|
||||
|
||||
constexpr FeatureFlags kTestCases[] = {
|
||||
FeatureFlags{},
|
||||
|
||||
Reference in New Issue
Block a user