#include "net/base/network_interfaces_linux.h"
#include <net/if.h>
#include <netinet/in.h>
#include <ostream>
#include <string>
#include <unordered_set>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "net/base/address_tracker_linux.h"
#include "net/base/ip_endpoint.h"
#include "net/base/network_interfaces_posix.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
static const char kIfnameEm1[] = …;
static const char kIfnameVmnet[] = …;
static const unsigned char kIPv6LocalAddr[] = …;
static const unsigned char kIPv6Addr[] = …;
char* GetInterfaceName(int interface_index, char* ifname) { … }
char* GetInterfaceNameVM(int interface_index, char* ifname) { … }
TEST(NetworkInterfacesTest, NetworkListTrimmingLinux) { … }
const char kWiFiSSID[] = …;
const char kInterfaceWithDifferentSSID[] = …;
std::string TestGetInterfaceSSID(const std::string& ifname) { … }
TEST(NetworkInterfacesTest, GetWifiSSIDFromInterfaceList) { … }
}
}