| 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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "mojo/public/bindings/allocation_scope.h" | 8 #include "mojo/public/cpp/bindings/allocation_scope.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace common { | 12 namespace common { |
| 13 namespace test { | 13 namespace test { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void ExpectEqualsStringPiece(const std::string& expected, | 16 void ExpectEqualsStringPiece(const std::string& expected, |
| 17 const base::StringPiece& str) { | 17 const base::StringPiece& str) { |
| 18 EXPECT_EQ(expected, str.as_string()); | 18 EXPECT_EQ(expected, str.as_string()); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ExpectEqualsMojoString(string16, string16); | 68 ExpectEqualsMojoString(string16, string16); |
| 69 ExpectEqualsString16(string16, mojo_string); | 69 ExpectEqualsString16(string16, mojo_string); |
| 70 | 70 |
| 71 // Test empty string conversion. | 71 // Test empty string conversion. |
| 72 ExpectEqualsMojoString(base::string16(), base::string16()); | 72 ExpectEqualsMojoString(base::string16(), base::string16()); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace test | 75 } // namespace test |
| 76 } // namespace common | 76 } // namespace common |
| 77 } // namespace mojo | 77 } // namespace mojo |
| OLD | NEW |