k_card/k_phone/test
Morten V. Christiansen 328c7d7cae Add Component 2 CONNECT handler; fix CONNECT routing tests
proxy_service.dart: _handleConnect gates on hasAnyActiveSession() (407 if
no active session), then connects directly to the upstream external target
(host:port from Host header), detaches the socket, and pipes bytes
bidirectionally. k_server is not involved in CONNECT tunnels.

filter_proxy_test.dart: replace _mockTcp() with _mockComp2Tcp() in the
CONNECT routing group so the mock speaks the full CONNECT handshake
(reads request headers, sends 200 Connection Established, pauses sub).
All 21 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 20:22:24 +02:00
..
enrollment_test.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
fido2_test.dart Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00
filter_proxy_test.dart Add Component 2 CONNECT handler; fix CONNECT routing tests 2026-05-02 20:22:24 +02:00
widget_test.dart Initial commit: chromecard workspace snapshot 2026-04-29 22:06:14 +02:00