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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_unittest.cc

Issue 8391010: Improve omnibox accessibility on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autocomplete/autocomplete_edit.h" 6 #include "chrome/browser/autocomplete/autocomplete_edit.h"
7 #include "chrome/browser/ui/omnibox/omnibox_view.h" 7 #include "chrome/browser/ui/omnibox/omnibox_view.h"
8 #include "chrome/test/base/testing_browser_process.h" 8 #include "chrome/test/base/testing_browser_process.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 19 matching lines...) Expand all
30 virtual int GetIcon() const { return 0; } 30 virtual int GetIcon() const { return 0; }
31 virtual void SetUserText(const string16& text) {} 31 virtual void SetUserText(const string16& text) {}
32 virtual void SetUserText(const string16& text, 32 virtual void SetUserText(const string16& text,
33 const string16& display_text, 33 const string16& display_text,
34 bool update_popup) {} 34 bool update_popup) {}
35 virtual void SetWindowTextAndCaretPos(const string16& text, 35 virtual void SetWindowTextAndCaretPos(const string16& text,
36 size_t caret_pos) {} 36 size_t caret_pos) {}
37 virtual void SetForcedQuery() {} 37 virtual void SetForcedQuery() {}
38 virtual bool IsSelectAll() { return false; } 38 virtual bool IsSelectAll() { return false; }
39 virtual bool DeleteAtEndPressed() { return false; } 39 virtual bool DeleteAtEndPressed() { return false; }
40 virtual void GetSelectionBounds(size_t* start, size_t* end) {} 40 virtual void GetSelectionBounds(size_t* start, size_t* end) const {}
41 virtual void SelectAll(bool reversed) {} 41 virtual void SelectAll(bool reversed) {}
42 virtual void RevertAll() {} 42 virtual void RevertAll() {}
43 virtual void UpdatePopup() {} 43 virtual void UpdatePopup() {}
44 virtual void ClosePopup() {} 44 virtual void ClosePopup() {}
45 virtual void SetFocus() {} 45 virtual void SetFocus() {}
46 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, 46 virtual void OnTemporaryTextMaybeChanged(const string16& display_text,
47 bool save_original_selection) {} 47 bool save_original_selection) {}
48 virtual bool OnInlineAutocompleteTextMaybeChanged( 48 virtual bool OnInlineAutocompleteTextMaybeChanged(
49 const string16& display_text, size_t user_text_length) { 49 const string16& display_text, size_t user_text_length) {
50 return false; 50 return false;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 GURL url; 156 GURL url;
157 bool write_url; 157 bool write_url;
158 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected, 158 model.AdjustTextForCopy(input[i].sel_start, input[i].is_all_selected,
159 &result, &url, &write_url); 159 &result, &url, &write_url);
160 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i; 160 EXPECT_EQ(ASCIIToUTF16(input[i].expected_output), result) << "@: " << i;
161 EXPECT_EQ(input[i].write_url, write_url) << " @" << i; 161 EXPECT_EQ(input[i].write_url, write_url) << " @" << i;
162 if (write_url) 162 if (write_url)
163 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i; 163 EXPECT_EQ(input[i].expected_url, url.spec()) << " @" << i;
164 } 164 }
165 } 165 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_accessibility.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698