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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectTest.cpp

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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 "modules/accessibility/AXObject.h" 5 #include "modules/accessibility/AXObject.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/testing/DummyPageHolder.h" 9 #include "core/testing/DummyPageHolder.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include <memory> 11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class AXObjectTest : public testing::Test { 15 class AXObjectTest : public ::testing::Test {
16 protected: 16 protected:
17 Document& GetDocument() { return page_holder_->GetDocument(); } 17 Document& GetDocument() { return page_holder_->GetDocument(); }
18 18
19 private: 19 private:
20 void SetUp() override; 20 void SetUp() override;
21 21
22 std::unique_ptr<DummyPageHolder> page_holder_; 22 std::unique_ptr<DummyPageHolder> page_holder_;
23 }; 23 };
24 24
25 void AXObjectTest::SetUp() { 25 void AXObjectTest::SetUp() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 *root->getElementById("aria-selected"))); 64 *root->getElementById("aria-selected")));
65 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget( 65 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget(
66 *root->getElementById("haspopup"))); 66 *root->getElementById("haspopup")));
67 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget( 67 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget(
68 *root->getElementById("focusable"))); 68 *root->getElementById("focusable")));
69 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget( 69 EXPECT_TRUE(AXObjectCache::IsInsideFocusableElementOrARIAWidget(
70 *root->getElementById("focusable-parent"))); 70 *root->getElementById("focusable-parent")));
71 } 71 }
72 72
73 } // namespace blink 73 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698