| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |