From fea2f84b755326ed9555b223a966902ce5326a5e Mon Sep 17 00:00:00 2001 From: duanshaofei Date: Wed, 10 Sep 2025 09:55:12 +0800 Subject: [PATCH] scroll Signed-off-by: duanshaofei Change-Id: Id75f0827dc861f6940999705f7a354a4b0e367a2 --- ohos_nweb/src/nweb_helper.cpp | 1 - test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/ohos_nweb/src/nweb_helper.cpp b/ohos_nweb/src/nweb_helper.cpp index d4c1716df..457ffa1b3 100644 --- a/ohos_nweb/src/nweb_helper.cpp +++ b/ohos_nweb/src/nweb_helper.cpp @@ -1398,7 +1398,6 @@ void NWebHelper::SetSocketIdleTimeout(int32_t timeout) socketIdleTimeout_ = timeout; return; } - nwebEngine_->SetSocketIdleTimeout(timeout); } diff --git a/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp b/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp index 30d53c06a..deb735275 100644 --- a/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp +++ b/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp @@ -448,7 +448,6 @@ HWTEST_F(NwebHelperTest, NWebHelper_LoadWebEngine_008, TestSize.Level1) NWebHelper::Instance().PauseAllTimers(); NWebHelper::Instance().ResumeAllTimers(); NWebHelper::Instance().SetWebDestroyMode(WebDestroyMode::NORMAL_MODE); - auto nwebEngineMock = std::make_shared(); NWebHelper::Instance().nwebEngine_ = nwebEngineMock; NWebHelper::Instance().SetHttpDns(config); -- Gitee