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

Side by Side Diff: base/memory/scoped_ptr_unittest.cc

Issue 1549003002: Switch to standard integer types in base/memory/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « base/memory/scoped_ptr.h ('k') | base/memory/scoped_vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 6
7 #include <stddef.h>
8
7 #include <sstream> 9 #include <sstream>
8 10
9 #include "base/basictypes.h"
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace { 16 namespace {
15 17
16 // Used to test depth subtyping. 18 // Used to test depth subtyping.
17 class ConDecLoggerParent { 19 class ConDecLoggerParent {
18 public: 20 public:
19 virtual ~ConDecLoggerParent() {} 21 virtual ~ConDecLoggerParent() {}
20 22
21 virtual void SetPtr(int* ptr) = 0; 23 virtual void SetPtr(int* ptr) = 0;
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 EXPECT_FALSE(p < nullptr); 830 EXPECT_FALSE(p < nullptr);
829 EXPECT_TRUE(nullptr < p); 831 EXPECT_TRUE(nullptr < p);
830 EXPECT_FALSE(pnull < nullptr); 832 EXPECT_FALSE(pnull < nullptr);
831 EXPECT_FALSE(nullptr < pnull); 833 EXPECT_FALSE(nullptr < pnull);
832 834
833 EXPECT_FALSE(p <= nullptr); 835 EXPECT_FALSE(p <= nullptr);
834 EXPECT_TRUE(nullptr <= p); 836 EXPECT_TRUE(nullptr <= p);
835 EXPECT_TRUE(pnull <= nullptr); 837 EXPECT_TRUE(pnull <= nullptr);
836 EXPECT_TRUE(nullptr <= pnull); 838 EXPECT_TRUE(nullptr <= pnull);
837 } 839 }
OLDNEW
« no previous file with comments | « base/memory/scoped_ptr.h ('k') | base/memory/scoped_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698