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

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

Issue 3018045: FBTF: Allow forward declaration of classes passed to sync IPC messages. (Closed)
Patch Set: Fix linkage problems with previous patch. 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 "base/values.h" 8 #include "base/values.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "webkit/glue/webaccessibility.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
11 13
12 TEST(RenderMessagesUnittest, WebAccessibility) { 14 TEST(RenderMessagesUnittest, WebAccessibility) {
13 // Test a simple case. 15 // Test a simple case.
14 webkit_glue::WebAccessibility input; 16 webkit_glue::WebAccessibility input;
15 input.id = 123; 17 input.id = 123;
16 input.name = ASCIIToUTF16("name"); 18 input.name = ASCIIToUTF16("name");
17 input.value = ASCIIToUTF16("value"); 19 input.value = ASCIIToUTF16("value");
18 string16 help = ASCIIToUTF16("help"); 20 string16 help = ASCIIToUTF16("help");
19 input.attributes[webkit_glue::WebAccessibility::ATTR_HELP] = help; 21 input.attributes[webkit_glue::WebAccessibility::ATTR_HELP] = help;
20 input.role = webkit_glue::WebAccessibility::ROLE_CHECKBOX; 22 input.role = webkit_glue::WebAccessibility::ROLE_CHECKBOX;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 EXPECT_EQ(inner1.name, output.children[0].name); 86 EXPECT_EQ(inner1.name, output.children[0].name);
85 EXPECT_EQ(inner1.role, output.children[0].role); 87 EXPECT_EQ(inner1.role, output.children[0].role);
86 EXPECT_EQ(inner1.state, output.children[0].state); 88 EXPECT_EQ(inner1.state, output.children[0].state);
87 EXPECT_EQ(inner1.location, output.children[0].location); 89 EXPECT_EQ(inner1.location, output.children[0].location);
88 EXPECT_EQ(inner2.id, output.children[1].id); 90 EXPECT_EQ(inner2.id, output.children[1].id);
89 EXPECT_EQ(inner2.name, output.children[1].name); 91 EXPECT_EQ(inner2.name, output.children[1].name);
90 EXPECT_EQ(inner2.role, output.children[1].role); 92 EXPECT_EQ(inner2.role, output.children[1].role);
91 EXPECT_EQ(inner2.state, output.children[1].state); 93 EXPECT_EQ(inner2.state, output.children[1].state);
92 EXPECT_EQ(inner2.location, output.children[1].location); 94 EXPECT_EQ(inner2.location, output.children[1].location);
93 } 95 }
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