mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefTestServer that supports both HTTP and HTTPS (see issue #3348)
This commit is contained in:
22
patch/patches/net_test_server_3798752.patch
Normal file
22
patch/patches/net_test_server_3798752.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git net/test/embedded_test_server/embedded_test_server.cc net/test/embedded_test_server/embedded_test_server.cc
|
||||
index 01233b6c48eb3..d5f8e53a499b1 100644
|
||||
--- net/test/embedded_test_server/embedded_test_server.cc
|
||||
+++ net/test/embedded_test_server/embedded_test_server.cc
|
||||
@@ -974,7 +974,7 @@ bool EmbeddedTestServer::PostTaskToIOThreadAndWait(base::OnceClosure closure) {
|
||||
if (!base::CurrentThread::Get())
|
||||
temporary_loop = std::make_unique<base::SingleThreadTaskExecutor>();
|
||||
|
||||
- base::RunLoop run_loop;
|
||||
+ base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed);
|
||||
if (!io_thread_->task_runner()->PostTaskAndReply(
|
||||
FROM_HERE, std::move(closure), run_loop.QuitClosure())) {
|
||||
return false;
|
||||
@@ -1001,7 +1001,7 @@ bool EmbeddedTestServer::PostTaskToIOThreadAndWaitWithResult(
|
||||
if (!base::CurrentThread::Get())
|
||||
temporary_loop = std::make_unique<base::SingleThreadTaskExecutor>();
|
||||
|
||||
- base::RunLoop run_loop;
|
||||
+ base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed);
|
||||
bool task_result = false;
|
||||
if (!base::PostTaskAndReplyWithResult(
|
||||
io_thread_->task_runner().get(), FROM_HERE, std::move(task),
|
Reference in New Issue
Block a user