Index: base/test/move_only_int.h |
diff --git a/base/containers/container_test_utils.h b/base/test/move_only_int.h |
similarity index 89% |
rename from base/containers/container_test_utils.h |
rename to base/test/move_only_int.h |
index 251e2a03d4f664c252f20a250c2f9ff4671ddc3a..50b9c3b16601584a75b90a4d497f37ff40a314ff 100644 |
--- a/base/containers/container_test_utils.h |
+++ b/base/test/move_only_int.h |
@@ -30,6 +30,14 @@ class MoveOnlyInt { |
return !operator==(lhs, rhs); |
} |
+ friend bool operator<(const MoveOnlyInt& lhs, int rhs) { |
+ return lhs.data_ < rhs; |
+ } |
+ |
+ friend bool operator<(int lhs, const MoveOnlyInt& rhs) { |
+ return lhs < rhs.data_; |
+ } |
+ |
friend bool operator<(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) { |
return lhs.data_ < rhs.data_; |
} |