| 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 <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Used to test depth subtyping. | 16 // Used to test depth subtyping. |
| 17 class ConDecLoggerParent { | 17 class ConDecLoggerParent { |
| 18 public: | 18 public: |
| 19 virtual ~ConDecLoggerParent() {} | 19 virtual ~ConDecLoggerParent() {} |
| 20 | 20 |
| 21 virtual void SetPtr(int* ptr) = 0; | 21 virtual void SetPtr(int* ptr) = 0; |
| 22 | 22 |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 EXPECT_FALSE(p < nullptr); | 825 EXPECT_FALSE(p < nullptr); |
| 826 EXPECT_TRUE(nullptr < p); | 826 EXPECT_TRUE(nullptr < p); |
| 827 EXPECT_FALSE(pnull < nullptr); | 827 EXPECT_FALSE(pnull < nullptr); |
| 828 EXPECT_FALSE(nullptr < pnull); | 828 EXPECT_FALSE(nullptr < pnull); |
| 829 | 829 |
| 830 EXPECT_FALSE(p <= nullptr); | 830 EXPECT_FALSE(p <= nullptr); |
| 831 EXPECT_TRUE(nullptr <= p); | 831 EXPECT_TRUE(nullptr <= p); |
| 832 EXPECT_TRUE(pnull <= nullptr); | 832 EXPECT_TRUE(pnull <= nullptr); |
| 833 EXPECT_TRUE(nullptr <= pnull); | 833 EXPECT_TRUE(nullptr <= pnull); |
| 834 } | 834 } |
| OLD | NEW |