/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_http_probe.cpp | 94 int32_t NetHttpProbe::SendProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl) in SendProbe() argument 97 ((probeType == ProbeType::PROBE_HTTP_HTTPS) in SendProbe() 99 : ((probeType == ProbeType::PROBE_HTTPS) ? "https" : "http"))); in SendProbe() 105 if (!InitHttpCurl(probeType)) { in SendProbe() 110 if (!SetCurlOptions(probeType, httpUrl, httpsUrl)) { in SendProbe() 268 bool NetHttpProbe::InitHttpCurl(ProbeType probeType) in InitHttpCurl() argument 276 if (HasProbeType(probeType, ProbeType::PROBE_HTTP)) { in InitHttpCurl() 284 if (HasProbeType(probeType, ProbeType::PROBE_HTTPS)) { in InitHttpCurl() 294 bool NetHttpProbe::SetCurlOptions(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl) in SetCurlOptions() argument 297 if (!SetProxyOption(probeType, useProx in SetCurlOptions() 321 SetHttpOptions(ProbeType probeType, CURL *curl, const std::string &url) SetHttpOptions() argument 357 SetProxyOption(ProbeType probeType, bool &useHttpProxy) SetProxyOption() argument 438 SetResolveOption(ProbeType probeType, const std::string &domain, const std::string &ipAddress, int32_t port) SetResolveOption() argument 464 SendDnsProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl, const bool useProxy) SendDnsProbe() argument [all...] |
H A D | probe_thread.cpp | 56 ProbeType probeType, std::string httpUrl, std::string httpsUrl) in ProbeThread() 57 : netId_(netId), probeType_(probeType), latch_(latch), latchAll_(latchAll), httpProbeUrl_(httpUrl), in ProbeThread() 81 void ProbeThread::SendHttpProbe(ProbeType probeType) in SendHttpProbe() argument 99 if (httpProbe_->SendProbe(probeType, httpProbeUrl_, httpsProbeUrl_) != NETMANAGER_SUCCESS) { in SendHttpProbe() 54 ProbeThread(uint32_t netId, NetBearType bearType, const NetLinkInfo &netLinkInfo, std::shared_ptr<TinyCountDownLatch> latch, std::shared_ptr<TinyCountDownLatch> latchAll, ProbeType probeType, std::string httpUrl, std::string httpsUrl) ProbeThread() argument
|
H A D | net_monitor.cpp | 211 NetHttpProbeResult NetMonitor::GetThreadDetectResult(std::shared_ptr<ProbeThread>& probeThread, ProbeType probeType) in GetThreadDetectResult() argument 215 if (probeType == ProbeType::PROBE_HTTP) { in GetThreadDetectResult()
|
/foundation/communication/netmanager_base/test/fuzztest/netbasebranch_fuzzer/ |
H A D | net_base_branch_fuzzer.cpp | 94 ProbeType probeType = ProbeType::PROBE_HTTP_HTTPS; in NetHttpProbeBranchFuzzTest() local 95 instance_->InitHttpCurl(probeType); in NetHttpProbeBranchFuzzTest() 97 instance_->HasProbeType(probeType, hasProbeType); in NetHttpProbeBranchFuzzTest() 102 instance_->SetResolveOption(probeType, testString, testString, testId); in NetHttpProbeBranchFuzzTest() 103 instance_->SetResolveOption(probeType, "test", testString, testId); in NetHttpProbeBranchFuzzTest() 106 instance_->SetCurlOptions(probeType, httpUrl, httpsUrl); in NetHttpProbeBranchFuzzTest() 108 instance_->SetHttpOptions(probeType, curl, testString); in NetHttpProbeBranchFuzzTest() 110 instance_->SetProxyOption(probeType, useHttpProxy); in NetHttpProbeBranchFuzzTest() 111 instance_->SetResolveOption(probeType, testString, testString, testId); in NetHttpProbeBranchFuzzTest() 112 instance_->SendDnsProbe(probeType, testStrin in NetHttpProbeBranchFuzzTest() [all...] |
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/ |
H A D | net_http_probe_test.cpp | 139 ProbeType probeType = ProbeType::PROBE_HTTP_HTTPS; in HWTEST_F() local 143 bool ret = instance_->SetHttpOptions(probeType, curl, url); in HWTEST_F() 145 ret = instance_->SetHttpOptions(probeType, instance_->httpCurl_, url); in HWTEST_F() 147 ret = instance_->InitHttpCurl(probeType); in HWTEST_F() 149 ret = instance_->SetHttpOptions(probeType, instance_->httpCurl_, TEST_HTTPS_URL); in HWTEST_F() 155 ProbeType probeType = ProbeType::PROBE_HTTP; in HWTEST_F() local 161 bool ret = instance_->SetProxyOption(probeType, useHttpProxy); in HWTEST_F() 167 ret = instance_->SetProxyOption(probeType, useHttpProxy); in HWTEST_F() 170 ret = instance_->InitHttpCurl(probeType); in HWTEST_F() 172 ret = instance_->SetProxyOption(probeType, useHttpProx in HWTEST_F() 216 ProbeType probeType = ProbeType::PROBE_HTTP; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | net_http_probe.h | 37 int32_t SendProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl); 54 bool InitHttpCurl(ProbeType probeType); 55 bool SetCurlOptions(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl); 56 bool SetHttpOptions(ProbeType probeType, CURL *curl, const std::string &url); 57 bool SetProxyOption(ProbeType probeType, bool &useProxy); 58 bool SetResolveOption(ProbeType probeType, const std::string &domain, const std::string &ipAddress, int32_t port); 59 bool SendDnsProbe(ProbeType probeType, const std::string &httpUrl, const std::string &httpsUrl,
|
H A D | probe_thread.h | 41 ProbeType probeType, std::string httpUrl, std::string httpsUrl); 64 void SendHttpProbe(ProbeType probeType);
|
H A D | net_monitor.h | 94 NetHttpProbeResult GetThreadDetectResult(std::shared_ptr<ProbeThread>& probeThread, ProbeType probeType);
|