Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: mojo/common/common_type_converters_unittest.cc

Issue 218613010: Mojo: Move mojo/public/bindings/*.h to mojo/public/cpp/bindings/*.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/common/common_type_converters.h ('k') | mojo/examples/aura_demo/aura_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/common/common_type_converters.h ('k') | mojo/examples/aura_demo/aura_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698