mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[ntcore] Remove "using wpi" from nt namespace
This removes the nt::ArrayRef, nt::StringRef, and nt::Twine aliases.
This commit is contained in:
@@ -245,7 +245,7 @@ TEST_F(EntryNotifierTest, PollPrefixBasic) {
|
||||
int g4count = 0;
|
||||
for (const auto& result : results) {
|
||||
SCOPED_TRACE(::testing::PrintToString(result));
|
||||
EXPECT_TRUE(StringRef(result.name).startswith("/foo"));
|
||||
EXPECT_TRUE(wpi::StringRef(result.name).startswith("/foo"));
|
||||
EXPECT_THAT(result.value, ValueEq(Value::MakeDouble(1)));
|
||||
EXPECT_EQ(Handle{result.entry}.GetType(), Handle::kEntry);
|
||||
EXPECT_EQ(Handle{result.entry}.GetInst(), 1);
|
||||
|
||||
@@ -30,7 +30,7 @@ class MockEntryNotifier : public IEntryNotifier {
|
||||
unsigned int(unsigned int poller_uid, unsigned int local_id,
|
||||
unsigned int flags));
|
||||
MOCK_METHOD5(NotifyEntry,
|
||||
void(unsigned int local_id, StringRef name,
|
||||
void(unsigned int local_id, wpi::StringRef name,
|
||||
std::shared_ptr<Value> value, unsigned int flags,
|
||||
unsigned int only_listener));
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ class MockRpcServer : public IRpcServer {
|
||||
MOCK_METHOD1(RemoveRpc, void(unsigned int rpc_uid));
|
||||
MOCK_METHOD7(ProcessRpc,
|
||||
void(unsigned int local_id, unsigned int call_uid,
|
||||
StringRef name, StringRef params,
|
||||
wpi::StringRef name, wpi::StringRef params,
|
||||
const ConnectionInfo& conn, SendResponseFunc send_response,
|
||||
unsigned int rpc_uid));
|
||||
};
|
||||
|
||||
@@ -19,6 +19,7 @@ using ::testing::_;
|
||||
using ::testing::AnyNumber;
|
||||
using ::testing::IsNull;
|
||||
using ::testing::Return;
|
||||
using wpi::StringRef;
|
||||
|
||||
namespace nt {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class StorageTest {
|
||||
Storage::EntriesMap& entries() { return storage.m_entries; }
|
||||
Storage::IdMap& idmap() { return storage.m_idmap; }
|
||||
|
||||
Storage::Entry* GetEntry(StringRef name) {
|
||||
Storage::Entry* GetEntry(wpi::StringRef name) {
|
||||
auto i = storage.m_entries.find(name);
|
||||
return i == storage.m_entries.end() ? &tmp_entry : i->getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user