Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cd82a8c authored by Roshan Pius's avatar Roshan Pius
Browse files

wifi(implementation): Fix unit test failures

ag/6722341 caused some unit test failures. Fixing them.

Bug: 127715974
Test: ./data/android.hardware.wifi@1.0-service-tests
Change-Id: Ib504cf55b9990dba081eb1b07bc32508e09ad0a6
parent 7b277acb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@ class MockWifiLegacyHal : public WifiLegacyHal {
    MOCK_METHOD2(registerRadioModeChangeCallbackHandler,
                 wifi_error(const std::string&,
                            const on_radio_mode_change_callback&));
    MOCK_METHOD1(getFirmwareVersion, std::pair<wifi_error, std::string>(
                 const std::string& iface_name));
    MOCK_METHOD1(getDriverVersion, std::pair<wifi_error, std::string>(
                 const std::string& iface_name));
    MOCK_METHOD2(nanRegisterCallbackHandlers,
                 wifi_error(const std::string&, const NanCallbackHandlers&));
    MOCK_METHOD2(nanDisableRequest,
+2 −2
Original line number Diff line number Diff line
@@ -184,9 +184,9 @@ class WifiLegacyHal {
    // Checks if legacy HAL has successfully started
    bool isStarted();
    // Wrappers for all the functions in the legacy HAL function table.
    std::pair<wifi_error, std::string> getDriverVersion(
    virtual std::pair<wifi_error, std::string> getDriverVersion(
        const std::string& iface_name);
    std::pair<wifi_error, std::string> getFirmwareVersion(
    virtual std::pair<wifi_error, std::string> getFirmwareVersion(
        const std::string& iface_name);
    std::pair<wifi_error, std::vector<uint8_t>> requestDriverMemoryDump(
        const std::string& iface_name);