OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/public/cpp/bindings/string.h" |
5 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 namespace test { | 9 namespace test { |
10 | 10 |
11 TEST(StringTest, DefaultIsNull) { | 11 TEST(StringTest, DefaultIsNull) { |
12 String s; | 12 String s; |
13 EXPECT_TRUE(s.is_null()); | 13 EXPECT_TRUE(s.is_null()); |
14 } | 14 } |
15 | 15 |
16 TEST(StringTest, ConstructedWithNULL) { | 16 TEST(StringTest, ConstructedWithNULL) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 EXPECT_FALSE(null < null2); | 84 EXPECT_FALSE(null < null2); |
85 EXPECT_FALSE(null2 < null); | 85 EXPECT_FALSE(null2 < null); |
86 | 86 |
87 String real("real"); | 87 String real("real"); |
88 EXPECT_TRUE(null < real); | 88 EXPECT_TRUE(null < real); |
89 EXPECT_FALSE(real < null); | 89 EXPECT_FALSE(real < null); |
90 } | 90 } |
91 | 91 |
92 } // namespace test | 92 } // namespace test |
93 } // namespace mojo | 93 } // namespace mojo |
OLD | NEW |