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

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

Issue 634533003: Replace OVERRIDE and FINAL with override and final in content/browser/accessibility/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/renderer_host/render_view_host_impl.h" 9 #include "content/browser/renderer_host/render_view_host_impl.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Make sure each node in the tree has an unique id. 50 // Make sure each node in the tree has an unique id.
51 void RecursiveAssertUniqueIds( 51 void RecursiveAssertUniqueIds(
52 const ui::AXNode* node, base::hash_set<int>* ids) { 52 const ui::AXNode* node, base::hash_set<int>* ids) {
53 ASSERT_TRUE(ids->find(node->id()) == ids->end()); 53 ASSERT_TRUE(ids->find(node->id()) == ids->end());
54 ids->insert(node->id()); 54 ids->insert(node->id());
55 for (int i = 0; i < node->child_count(); i++) 55 for (int i = 0; i < node->child_count(); i++)
56 RecursiveAssertUniqueIds(node->ChildAtIndex(i), ids); 56 RecursiveAssertUniqueIds(node->ChildAtIndex(i), ids);
57 } 57 }
58 58
59 // ContentBrowserTest 59 // ContentBrowserTest
60 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; 60 virtual void SetUpInProcessBrowserTestFixture() override;
61 virtual void TearDownInProcessBrowserTestFixture() OVERRIDE; 61 virtual void TearDownInProcessBrowserTestFixture() override;
62 62
63 protected: 63 protected:
64 std::string GetAttr(const ui::AXNode* node, 64 std::string GetAttr(const ui::AXNode* node,
65 const ui::AXStringAttribute attr); 65 const ui::AXStringAttribute attr);
66 int GetIntAttr(const ui::AXNode* node, 66 int GetIntAttr(const ui::AXNode* node,
67 const ui::AXIntAttribute attr); 67 const ui::AXIntAttribute attr);
68 bool GetBoolAttr(const ui::AXNode* node, 68 bool GetBoolAttr(const ui::AXNode* node,
69 const ui::AXBoolAttribute attr); 69 const ui::AXBoolAttribute attr);
70 70
71 private: 71 private:
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 GURL url(url_str); 488 GURL url(url_str);
489 NavigateToURL(shell(), url); 489 NavigateToURL(shell(), url);
490 const ui::AXTree& tree = GetAXTree(); 490 const ui::AXTree& tree = GetAXTree();
491 const ui::AXNode* root = tree.GetRoot(); 491 const ui::AXNode* root = tree.GetRoot();
492 ASSERT_EQ(1, root->child_count()); 492 ASSERT_EQ(1, root->child_count());
493 const ui::AXNode* textbox = root->ChildAtIndex(0); 493 const ui::AXNode* textbox = root->ChildAtIndex(0);
494 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); 494 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE));
495 } 495 }
496 496
497 } // namespace content 497 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698