Skip to content

Commit

Permalink
VPN-5740 - Add force_backend_failure to inspector commands (#8341)
Browse files Browse the repository at this point in the history
* Add mockSomethingWentWrong to inspector commands

* change command name to force_backend_failure

* fixup! change command name to force_backend_failure

* Reorg commands alphabetically
  • Loading branch information
Gela authored Oct 24, 2023
1 parent ea37f1d commit ec0986e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mozillavpn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,13 @@ void MozillaVPN::registerInspectorCommands() {
return QJsonObject();
});

InspectorHandler::registerCommand(
"force_backend_failure", "Force a backend failure", 0,
[](InspectorHandler*, const QList<QByteArray>&) {
MozillaVPN::instance()->connectionManager()->backendFailure();
return QJsonObject();
});

InspectorHandler::registerCommand(
"force_captive_portal_check", "Force a captive portal check", 0,
[](InspectorHandler*, const QList<QByteArray>&) {
Expand Down

0 comments on commit ec0986e

Please sign in to comment.