OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
6 #include "base/string16.h" | 6 #include "base/string16.h" |
| 7 #include "base/utf_string_conversions.h" |
7 #include "base/values.h" | 8 #include "base/values.h" |
8 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 TEST(RenderMessagesUnittest, WebAccessibility) { | 12 TEST(RenderMessagesUnittest, WebAccessibility) { |
12 // Test a simple case. | 13 // Test a simple case. |
13 webkit_glue::WebAccessibility input; | 14 webkit_glue::WebAccessibility input; |
14 input.id = 123; | 15 input.id = 123; |
15 input.name = ASCIIToUTF16("name"); | 16 input.name = ASCIIToUTF16("name"); |
16 input.value = ASCIIToUTF16("value"); | 17 input.value = ASCIIToUTF16("value"); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 EXPECT_EQ(inner1.name, output.children[0].name); | 84 EXPECT_EQ(inner1.name, output.children[0].name); |
84 EXPECT_EQ(inner1.role, output.children[0].role); | 85 EXPECT_EQ(inner1.role, output.children[0].role); |
85 EXPECT_EQ(inner1.state, output.children[0].state); | 86 EXPECT_EQ(inner1.state, output.children[0].state); |
86 EXPECT_EQ(inner1.location, output.children[0].location); | 87 EXPECT_EQ(inner1.location, output.children[0].location); |
87 EXPECT_EQ(inner2.id, output.children[1].id); | 88 EXPECT_EQ(inner2.id, output.children[1].id); |
88 EXPECT_EQ(inner2.name, output.children[1].name); | 89 EXPECT_EQ(inner2.name, output.children[1].name); |
89 EXPECT_EQ(inner2.role, output.children[1].role); | 90 EXPECT_EQ(inner2.role, output.children[1].role); |
90 EXPECT_EQ(inner2.state, output.children[1].state); | 91 EXPECT_EQ(inner2.state, output.children[1].state); |
91 EXPECT_EQ(inner2.location, output.children[1].location); | 92 EXPECT_EQ(inner2.location, output.children[1].location); |
92 } | 93 } |
OLD | NEW |