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

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

Issue 642313003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Including id in the AUTHORS file. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Send a hit test request, and wait for the hover event in response. 66 // Send a hit test request, and wait for the hover event in response.
67 AccessibilityNotificationWaiter hover_waiter( 67 AccessibilityNotificationWaiter hover_waiter(
68 shell(), AccessibilityModeComplete, 68 shell(), AccessibilityModeComplete,
69 ui::AX_EVENT_HOVER); 69 ui::AX_EVENT_HOVER);
70 manager->delegate()->AccessibilityHitTest(gfx::Point(-1, -1)); 70 manager->delegate()->AccessibilityHitTest(gfx::Point(-1, -1));
71 hover_waiter.WaitForNotification(); 71 hover_waiter.WaitForNotification();
72 72
73 // Assert that the hover event was fired on the root of the tree. 73 // Assert that the hover event was fired on the root of the tree.
74 int hover_target_id = hover_waiter.event_target_id(); 74 int hover_target_id = hover_waiter.event_target_id();
75 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); 75 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id);
76 ASSERT_TRUE(hovered_node != NULL); 76 ASSERT_TRUE(hovered_node != nullptr);
77 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); 77 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole());
78 } 78 }
79 79
80 } // namespace content 80 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698