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

Side by Side Diff: content/browser/accessibility/accessibility_win_browsertest.cc

Issue 2864953002: Split out the MSCOM pieces of BrowserAccessibilityWin into a seperate class. (Closed)
Patch Set: follow up comment Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 // Test special offsets. 1689 // Test special offsets.
1690 CheckTextAtOffset(textarea_text, IA2_TEXT_OFFSET_CARET, 1690 CheckTextAtOffset(textarea_text, IA2_TEXT_OFFSET_CARET,
1691 IA2_TEXT_BOUNDARY_WORD, 40, CONTENTS_LENGTH, L"like\"."); 1691 IA2_TEXT_BOUNDARY_WORD, 40, CONTENTS_LENGTH, L"like\".");
1692 } 1692 }
1693 1693
1694 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 1694 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
1695 TestStaticTextAtOffsetWithBoundaryWord) { 1695 TestStaticTextAtOffsetWithBoundaryWord) {
1696 base::win::ScopedComPtr<IAccessibleText> paragraph_text; 1696 base::win::ScopedComPtr<IAccessibleText> paragraph_text;
1697 SetUpSampleParagraph(&paragraph_text); 1697 SetUpSampleParagraph(&paragraph_text);
1698 base::string16 embedded_character( 1698 base::string16 embedded_character(
1699 1, BrowserAccessibilityWin::kEmbeddedCharacter); 1699 1, BrowserAccessibilityComWin::kEmbeddedCharacter);
1700 std::vector<std::wstring> words; 1700 std::vector<std::wstring> words;
1701 words.push_back(L"Game "); 1701 words.push_back(L"Game ");
1702 words.push_back(L"theory "); 1702 words.push_back(L"theory ");
1703 words.push_back(L"is \""); 1703 words.push_back(L"is \"");
1704 words.push_back(L"the "); 1704 words.push_back(L"the ");
1705 words.push_back(L"study "); 1705 words.push_back(L"study ");
1706 words.push_back(L"of "); 1706 words.push_back(L"of ");
1707 words.push_back(embedded_character); 1707 words.push_back(embedded_character);
1708 words.push_back(L"of "); 1708 words.push_back(L"of ");
1709 words.push_back(L"conflict "); 1709 words.push_back(L"conflict ");
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2041 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_rowIndex(&row_index)); 2041 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_rowIndex(&row_index));
2042 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_columnIndex(&column_index)); 2042 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_columnIndex(&column_index));
2043 EXPECT_EQ(1, row_index); 2043 EXPECT_EQ(1, row_index);
2044 EXPECT_EQ(1, column_index); 2044 EXPECT_EQ(1, column_index);
2045 variant.Reset(); 2045 variant.Reset();
2046 name.Reset(); 2046 name.Reset();
2047 accessible_cell.Reset(); 2047 accessible_cell.Reset();
2048 } 2048 }
2049 2049
2050 } // namespace content 2050 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698