Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: base/functional_unittest.cc

Issue 2944523002: Improving flat containers interface. (Closed)
Patch Set: Review, round 1. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698