98
98
TEST(RadioCell, explicit_construction_yields_correct_type)
101
location::connectivity::RadioCell::Gsm gsm
103
location::connectivity::RadioCell::Gsm::MCC{42},
104
location::connectivity::RadioCell::Gsm::MNC{42},
105
location::connectivity::RadioCell::Gsm::LAC{42},
106
location::connectivity::RadioCell::Gsm::ID{42},
107
location::connectivity::RadioCell::Gsm::SignalStrength{21}
110
location::connectivity::RadioCell cell{gsm};
112
EXPECT_EQ(location::connectivity::RadioCell::Type::gsm, cell.type());
116
location::connectivity::RadioCell::Umts umts
118
location::connectivity::RadioCell::Umts::MCC{42},
119
location::connectivity::RadioCell::Umts::MNC{42},
120
location::connectivity::RadioCell::Umts::LAC{42},
121
location::connectivity::RadioCell::Umts::ID{42},
122
location::connectivity::RadioCell::Umts::SignalStrength{21}
125
location::connectivity::RadioCell cell{umts};
127
EXPECT_EQ(location::connectivity::RadioCell::Type::umts, cell.type());
131
location::connectivity::RadioCell::Lte lte
133
location::connectivity::RadioCell::Lte::MCC{42},
134
location::connectivity::RadioCell::Lte::MNC{42},
135
location::connectivity::RadioCell::Lte::TAC{42},
136
location::connectivity::RadioCell::Lte::ID{42},
137
location::connectivity::RadioCell::Lte::PID{42},
138
location::connectivity::RadioCell::Lte::SignalStrength{21}
141
location::connectivity::RadioCell cell{lte};
143
EXPECT_EQ(location::connectivity::RadioCell::Type::lte, cell.type());
101
connectivity::RadioCell::Gsm gsm
103
connectivity::RadioCell::Gsm::MCC{42},
104
connectivity::RadioCell::Gsm::MNC{42},
105
connectivity::RadioCell::Gsm::LAC{42},
106
connectivity::RadioCell::Gsm::ID{42},
107
connectivity::RadioCell::Gsm::SignalStrength{21}
110
connectivity::RadioCell cell{gsm};
112
EXPECT_EQ(connectivity::RadioCell::Type::gsm, cell.type());
116
connectivity::RadioCell::Umts umts
118
connectivity::RadioCell::Umts::MCC{42},
119
connectivity::RadioCell::Umts::MNC{42},
120
connectivity::RadioCell::Umts::LAC{42},
121
connectivity::RadioCell::Umts::ID{42},
122
connectivity::RadioCell::Umts::SignalStrength{21}
125
connectivity::RadioCell cell{umts};
127
EXPECT_EQ(connectivity::RadioCell::Type::umts, cell.type());
131
connectivity::RadioCell::Lte lte
133
connectivity::RadioCell::Lte::MCC{42},
134
connectivity::RadioCell::Lte::MNC{42},
135
connectivity::RadioCell::Lte::TAC{42},
136
connectivity::RadioCell::Lte::ID{42},
137
connectivity::RadioCell::Lte::PID{42},
138
connectivity::RadioCell::Lte::SignalStrength{21}
141
connectivity::RadioCell cell{lte};
143
EXPECT_EQ(connectivity::RadioCell::Type::lte, cell.type());
147
147
TEST(ConnectivityManagerOnDevice, repeatedly_requesting_network_scans_works_requires_hardware)
149
auto manager = location::connectivity::platform_default_manager();
149
auto manager = connectivity::platform_default_manager();
151
151
for (unsigned int i = 0; i < 100; i++)
152
152
manager->request_scan_for_wireless_networks();