OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/common/common_type_converters.h" | 5 #include "mojo/common/common_type_converters.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
8 #include "mojo/common/url_type_converters.h" | 10 #include "mojo/common/url_type_converters.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "url/gurl.h" | 12 #include "url/gurl.h" |
11 | 13 |
12 namespace mojo { | 14 namespace mojo { |
13 namespace common { | 15 namespace common { |
14 namespace test { | 16 namespace test { |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 TEST(CommonTypeConvertersTest, EmptyStringToArrayUint8) { | 111 TEST(CommonTypeConvertersTest, EmptyStringToArrayUint8) { |
110 Array<uint8_t> data = Array<uint8_t>::From(std::string()); | 112 Array<uint8_t> data = Array<uint8_t>::From(std::string()); |
111 | 113 |
112 ASSERT_EQ(0ul, data.size()); | 114 ASSERT_EQ(0ul, data.size()); |
113 EXPECT_FALSE(data.is_null()); | 115 EXPECT_FALSE(data.is_null()); |
114 } | 116 } |
115 | 117 |
116 } // namespace test | 118 } // namespace test |
117 } // namespace common | 119 } // namespace common |
118 } // namespace mojo | 120 } // namespace mojo |
OLD | NEW |