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

Side by Side Diff: chrome/common/render_messages_unittest.cc

Issue 3152007: Revert "FBTF: Allow forward declaration of classes passed to sync IPC messages." (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/webkit_param_traits.h » ('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 (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/utf_string_conversions.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/glue/webaccessibility.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
12 10
13 TEST(RenderMessagesUnittest, WebAccessibility) { 11 TEST(RenderMessagesUnittest, WebAccessibility) {
14 // Test a simple case. 12 // Test a simple case.
15 webkit_glue::WebAccessibility input; 13 webkit_glue::WebAccessibility input;
16 input.id = 123; 14 input.id = 123;
17 input.name = ASCIIToUTF16("name"); 15 input.name = ASCIIToUTF16("name");
18 input.value = ASCIIToUTF16("value"); 16 input.value = ASCIIToUTF16("value");
19 string16 help = ASCIIToUTF16("help"); 17 string16 help = ASCIIToUTF16("help");
20 input.attributes[webkit_glue::WebAccessibility::ATTR_HELP] = help; 18 input.attributes[webkit_glue::WebAccessibility::ATTR_HELP] = help;
21 input.role = webkit_glue::WebAccessibility::ROLE_CHECKBOX; 19 input.role = webkit_glue::WebAccessibility::ROLE_CHECKBOX;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 EXPECT_EQ(inner1.name, output.children[0].name); 83 EXPECT_EQ(inner1.name, output.children[0].name);
86 EXPECT_EQ(inner1.role, output.children[0].role); 84 EXPECT_EQ(inner1.role, output.children[0].role);
87 EXPECT_EQ(inner1.state, output.children[0].state); 85 EXPECT_EQ(inner1.state, output.children[0].state);
88 EXPECT_EQ(inner1.location, output.children[0].location); 86 EXPECT_EQ(inner1.location, output.children[0].location);
89 EXPECT_EQ(inner2.id, output.children[1].id); 87 EXPECT_EQ(inner2.id, output.children[1].id);
90 EXPECT_EQ(inner2.name, output.children[1].name); 88 EXPECT_EQ(inner2.name, output.children[1].name);
91 EXPECT_EQ(inner2.role, output.children[1].role); 89 EXPECT_EQ(inner2.role, output.children[1].role);
92 EXPECT_EQ(inner2.state, output.children[1].state); 90 EXPECT_EQ(inner2.state, output.children[1].state);
93 EXPECT_EQ(inner2.location, output.children[1].location); 91 EXPECT_EQ(inner2.location, output.children[1].location);
94 } 92 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/webkit_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698