mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Changed number (1/0) to true/false in Connections Dump()
PiperOrigin-RevId: 537092962
This commit is contained in:
committed by
Copybara-Service
parent
8e9ecdabc1
commit
7c931aa9c7
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <cstdlib>
|
||||
#include <functional>
|
||||
#include <ios>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
@@ -866,15 +867,14 @@ std::string ClientProxy::Dump() {
|
||||
sstream << "Nearby Connections State" << std::endl;
|
||||
sstream << " Client ID: " << GetClientId() << std::endl;
|
||||
sstream << " Local Endpoint ID: " << GetLocalEndpointId() << std::endl;
|
||||
sstream << std::boolalpha;
|
||||
sstream << " High Visibility Mode: " << high_vis_mode_ << std::endl;
|
||||
sstream << " Is Advertising: " << IsAdvertising() << std::endl;
|
||||
sstream << " Is Discovering: " << IsDiscovering() << std::endl;
|
||||
sstream << std::noboolalpha;
|
||||
sstream << " Advertising Service ID: " << GetAdvertisingServiceId()
|
||||
<< std::endl;
|
||||
// TODO(deling): AdvertisingOptions
|
||||
sstream << " Is Discovering: " << IsDiscovering() << std::endl;
|
||||
sstream << " Discovery Service ID: " << GetDiscoveryServiceId() << std::endl;
|
||||
// TODO(deling): DiscoveryOptions
|
||||
|
||||
sstream << " Connections: " << std::endl;
|
||||
for (auto it = connections_.begin(); it != connections_.end(); ++it) {
|
||||
// TODO(deling): write Connection.ToString()
|
||||
|
||||
@@ -434,10 +434,10 @@ TEST_F(ClientProxyTest, DumpString) {
|
||||
"Nearby Connections State\n"
|
||||
" Client ID: %d\n"
|
||||
" Local Endpoint ID: %s\n"
|
||||
" High Visibility Mode: 0\n"
|
||||
" Is Advertising: 0\n"
|
||||
" High Visibility Mode: false\n"
|
||||
" Is Advertising: false\n"
|
||||
" Is Discovering: false\n"
|
||||
" Advertising Service ID: \n"
|
||||
" Is Discovering: 0\n"
|
||||
" Discovery Service ID: \n"
|
||||
" Connections: \n"
|
||||
" Discovered endpoint IDs: \n",
|
||||
|
||||
Reference in New Issue
Block a user