diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-08-31 00:06:22 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-08-31 00:06:22 +0200 |
commit | 8a4d561c1600218282b4c3243be22225d2827a27 (patch) | |
tree | 7460b993e42a20582fc67e7a195f93dd85a2fc3f /searchcore/src/tests/proton | |
parent | 1aebe8440cb867789864c43ddca8a6f1fa9913d7 (diff) |
Move streaming operator to namespace searched by ADL.
Diffstat (limited to 'searchcore/src/tests/proton')
-rw-r--r-- | searchcore/src/tests/proton/common/pendinglidtracker_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/common/pendinglidtracker_test.cpp b/searchcore/src/tests/proton/common/pendinglidtracker_test.cpp index 575033ad19a..3b42a399888 100644 --- a/searchcore/src/tests/proton/common/pendinglidtracker_test.cpp +++ b/searchcore/src/tests/proton/common/pendinglidtracker_test.cpp @@ -12,6 +12,8 @@ constexpr uint32_t LID_1 = 1u; const std::vector<uint32_t> LIDV_2_1_3({2u, LID_1, 3u}); const std::vector<uint32_t> LIDV_2_3({2u, 3u}); +namespace proton { + std::ostream & operator << (std::ostream & os, ILidCommitState::State state) { switch (state) { @@ -28,6 +30,8 @@ operator << (std::ostream & os, ILidCommitState::State state) { return os; } +} + void verifyPhase1ProduceAndNeedCommit(PendingLidTrackerBase & tracker, ILidCommitState::State expected) { EXPECT_EQUAL(ILidCommitState::State::COMPLETED, tracker.getState()); |