OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/functional.h" |
| 6 |
| 7 #include "base/containers/container_test_utils.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 |
| 10 namespace base { |
| 11 |
| 12 namespace { |
| 13 |
| 14 TEST(Functional, Less) { |
| 15 using ExplicitInt = base::MoveOnlyInt; |
| 16 EXPECT_TRUE(base::less()(ExplicitInt(3), 4)); |
| 17 EXPECT_FALSE(base::less()(4, ExplicitInt(3))); |
| 18 EXPECT_TRUE(base::less()(3, 4)); |
| 19 } |
| 20 |
| 21 } // namespace |
| 22 |
| 23 } // namespace base |
OLD | NEW |