Home
last modified time | relevance | path

Searched refs:info_list (Results 1 – 11 of 11) sorted by relevance

/system/connectivity/shill/
Dsocket_info_reader_unittest.cc136 vector<SocketInfo> info_list; in TEST_F() local
141 EXPECT_FALSE(reader_.LoadTcpSocketInfo(&info_list)); in TEST_F()
147 EXPECT_TRUE(reader_.LoadTcpSocketInfo(&info_list)); in TEST_F()
148 EXPECT_EQ(1, info_list.size()); in TEST_F()
149 ExpectSocketInfoEqual(v4_info, info_list[0]); in TEST_F()
155 EXPECT_TRUE(reader_.LoadTcpSocketInfo(&info_list)); in TEST_F()
156 EXPECT_EQ(1, info_list.size()); in TEST_F()
157 ExpectSocketInfoEqual(v6_info, info_list[0]); in TEST_F()
163 EXPECT_TRUE(reader_.LoadTcpSocketInfo(&info_list)); in TEST_F()
164 EXPECT_EQ(2, info_list.size()); in TEST_F()
[all …]
Dconnection_info_reader_unittest.cc106 vector<ConnectionInfo> info_list; in TEST_F() local
113 EXPECT_FALSE(reader_.LoadConnectionInfo(&info_list)); in TEST_F()
119 EXPECT_TRUE(reader_.LoadConnectionInfo(&info_list)); in TEST_F()
120 EXPECT_TRUE(info_list.empty()); in TEST_F()
128 EXPECT_TRUE(reader_.LoadConnectionInfo(&info_list)); in TEST_F()
129 EXPECT_EQ(arraysize(kConnectionInfoLines), info_list.size()); in TEST_F()
142 info_list[0]); in TEST_F()
154 info_list[1]); in TEST_F()
Dsocket_info_reader.cc59 bool SocketInfoReader::LoadTcpSocketInfo(vector<SocketInfo>* info_list) { in LoadTcpSocketInfo() argument
60 info_list->clear(); in LoadTcpSocketInfo()
61 bool v4_loaded = AppendSocketInfo(GetTcpv4SocketInfoFilePath(), info_list); in LoadTcpSocketInfo()
62 bool v6_loaded = AppendSocketInfo(GetTcpv6SocketInfoFilePath(), info_list); in LoadTcpSocketInfo()
69 vector<SocketInfo>* info_list) { in AppendSocketInfo() argument
81 info_list->push_back(socket_info); in AppendSocketInfo()
Dconnection_health_checker_unittest.cc260 vector<SocketInfo> info_list; in ExpectGetSocketInfoReturns() local
261 info_list.push_back(sock_info); in ExpectGetSocketInfoReturns()
268 .WillOnce(DoAll(SetArgumentPointee<0>(info_list), in ExpectGetSocketInfoReturns()
471 vector<SocketInfo> info_list; in TEST_F() local
497 info_list.clear(); in TEST_F()
501 .WillOnce(DoAll(SetArgumentPointee<0>(info_list), in TEST_F()
508 info_list.clear(); in TEST_F()
509 info_list.push_back(CreateSocketInfoOther()); in TEST_F()
513 .WillOnce(DoAll(SetArgumentPointee<0>(info_list), in TEST_F()
520 info_list.clear(); in TEST_F()
[all …]
Dsocket_info_reader.h49 virtual bool LoadTcpSocketInfo(std::vector<SocketInfo>* info_list);
62 std::vector<SocketInfo>* info_list);
Dconnection_info_reader.cc63 vector<ConnectionInfo>* info_list) { in LoadConnectionInfo() argument
64 info_list->clear(); in LoadConnectionInfo()
78 info_list->push_back(info); in LoadConnectionInfo()
Dmock_socket_info_reader.h36 MOCK_METHOD1(LoadTcpSocketInfo, bool(std::vector<SocketInfo>* info_list));
Dmock_connection_info_reader.h37 bool(std::vector<ConnectionInfo>* info_list));
Dconnection_health_checker.cc419 vector<SocketInfo> info_list; in GetSocketInfo() local
420 if (!socket_info_reader_->LoadTcpSocketInfo(&info_list)) { in GetSocketInfo()
426 for (vector<SocketInfo>::const_iterator info_list_it = info_list.begin(); in GetSocketInfo()
427 info_list_it != info_list.end(); in GetSocketInfo()
Dconnection_info_reader.h44 virtual bool LoadConnectionInfo(std::vector<ConnectionInfo>* info_list);
Dtraffic_monitor_unittest.cc120 bool MockLoadTcpSocketInfo(vector<SocketInfo>* info_list) { in MockLoadTcpSocketInfo() argument
121 *info_list = mock_socket_infos_; in MockLoadTcpSocketInfo()
125 bool MockLoadConnectionInfo(vector<ConnectionInfo>* info_list) { in MockLoadConnectionInfo() argument
126 *info_list = mock_connection_infos_; in MockLoadConnectionInfo()