Files
Francis Tsui ad6267d236 Remove unused code
PiperOrigin-RevId: 853316103
2026-01-07 10:20:46 -08:00

47 lines
1.5 KiB
C++

// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <iostream>
#include "gtest/gtest.h"
#include "internal/platform/implementation/windows/wifi.h"
#include "internal/platform/logging.h"
namespace nearby::windows {
namespace {
TEST(WifiMedium, DISABLED_GetCapabilityAndInformation) {
int run_test;
LOG(INFO) << "Run GetCapabilityAndInformation test case? input 0 or 1:";
std::cin >> run_test;
if (run_test) {
WifiMedium wifi_medium;
auto& capability = wifi_medium.GetCapability();
LOG(INFO) << "Support 5G? " << capability.supports_5_ghz;
auto& information = wifi_medium.GetInformation();
LOG(INFO) << "Is Connected? " << information.is_connected
<< "; ssid = " << information.ssid
<< "; bssid = " << information.bssid
<< "; ap_frequency: " << information.ap_frequency;
} else {
LOG(INFO) << "Skip the test";
}
}
} // namespace
} // namespace nearby::windows