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

Side by Side Diff: chrome/browser/ui/views/toolbar_view_browsertest.cc

Issue 10982007: Merge 157914 - Fix toolbar keyboard accessibility on Views (alternative impl). (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | chrome/chrome_tests.gypi » ('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) 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 "chrome/browser/ui/views/toolbar_view.h" 5 #include "chrome/browser/ui/views/toolbar_view.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/browser_command_controller.h" 10 #include "chrome/browser/ui/browser_command_controller.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Assert that the views were focused in exactly the reverse order. 76 // Assert that the views were focused in exactly the reverse order.
77 // The sequences should be the same length, and the last element will 77 // The sequences should be the same length, and the last element will
78 // be the same, and the others are reverse. 78 // be the same, and the others are reverse.
79 ASSERT_EQ(ids.size(), reverse_ids.size()); 79 ASSERT_EQ(ids.size(), reverse_ids.size());
80 size_t count = ids.size(); 80 size_t count = ids.size();
81 for (size_t i = 0; i < count - 1; i++) 81 for (size_t i = 0; i < count - 1; i++)
82 EXPECT_EQ(ids[i], reverse_ids[count - 2 - i]); 82 EXPECT_EQ(ids[i], reverse_ids[count - 2 - i]);
83 } 83 }
84 84
85 } // namespace 85 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698