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

Commit 65ce5513 authored by Marin Shalamanov's avatar Marin Shalamanov
Browse files

SF: Add operator<< to RefreshRate

Add operator<< to RefreshRate. This way test failures will show
actionable information instead of the binary form of the object.

Test: presubmit
Change-Id: If221bedffc6c4bee48a829bbe9fe1f35e591e698
parent 23c4420b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -91,6 +91,9 @@ public:
        bool operator==(const RefreshRate& other) const { return !(*this != other); }

        std::string toString() const;
        friend std::ostream& operator<<(std::ostream& os, const RefreshRate& refreshRate) {
            return os << refreshRate.toString();
        }

    private:
        friend RefreshRateConfigs;