OLD | NEW |
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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "base/win/scoped_bstr.h" | 7 #include "base/win/scoped_bstr.h" |
8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
9 #include "base/win/scoped_variant.h" | 9 #include "base/win/scoped_variant.h" |
10 #include "content/browser/accessibility/browser_accessibility_manager.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // CountedBrowserAccessibilityFactory ----------------------------------------- | 52 // CountedBrowserAccessibilityFactory ----------------------------------------- |
53 | 53 |
54 // Factory that creates a CountedBrowserAccessibility. | 54 // Factory that creates a CountedBrowserAccessibility. |
55 class CountedBrowserAccessibilityFactory : public BrowserAccessibilityFactory { | 55 class CountedBrowserAccessibilityFactory : public BrowserAccessibilityFactory { |
56 public: | 56 public: |
57 CountedBrowserAccessibilityFactory(); | 57 CountedBrowserAccessibilityFactory(); |
58 | 58 |
59 private: | 59 private: |
60 virtual ~CountedBrowserAccessibilityFactory(); | 60 virtual ~CountedBrowserAccessibilityFactory(); |
61 | 61 |
62 virtual BrowserAccessibility* Create() OVERRIDE; | 62 virtual BrowserAccessibility* Create() override; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(CountedBrowserAccessibilityFactory); | 64 DISALLOW_COPY_AND_ASSIGN(CountedBrowserAccessibilityFactory); |
65 }; | 65 }; |
66 | 66 |
67 CountedBrowserAccessibilityFactory::CountedBrowserAccessibilityFactory() { | 67 CountedBrowserAccessibilityFactory::CountedBrowserAccessibilityFactory() { |
68 } | 68 } |
69 | 69 |
70 CountedBrowserAccessibilityFactory::~CountedBrowserAccessibilityFactory() { | 70 CountedBrowserAccessibilityFactory::~CountedBrowserAccessibilityFactory() { |
71 } | 71 } |
72 | 72 |
(...skipping 10 matching lines...) Expand all Loading... |
83 | 83 |
84 | 84 |
85 // BrowserAccessibilityTest --------------------------------------------------- | 85 // BrowserAccessibilityTest --------------------------------------------------- |
86 | 86 |
87 class BrowserAccessibilityTest : public testing::Test { | 87 class BrowserAccessibilityTest : public testing::Test { |
88 public: | 88 public: |
89 BrowserAccessibilityTest(); | 89 BrowserAccessibilityTest(); |
90 virtual ~BrowserAccessibilityTest(); | 90 virtual ~BrowserAccessibilityTest(); |
91 | 91 |
92 private: | 92 private: |
93 virtual void SetUp() OVERRIDE; | 93 virtual void SetUp() override; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityTest); | 95 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityTest); |
96 }; | 96 }; |
97 | 97 |
98 BrowserAccessibilityTest::BrowserAccessibilityTest() { | 98 BrowserAccessibilityTest::BrowserAccessibilityTest() { |
99 } | 99 } |
100 | 100 |
101 BrowserAccessibilityTest::~BrowserAccessibilityTest() { | 101 BrowserAccessibilityTest::~BrowserAccessibilityTest() { |
102 } | 102 } |
103 | 103 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 // And the new child exists. | 673 // And the new child exists. |
674 EXPECT_EQ(ui::AX_ROLE_BUTTON, acc2_2->GetRole()); | 674 EXPECT_EQ(ui::AX_ROLE_BUTTON, acc2_2->GetRole()); |
675 EXPECT_EQ(3, acc2_2->GetId()); | 675 EXPECT_EQ(3, acc2_2->GetId()); |
676 | 676 |
677 // Ensure we properly cleaned up. | 677 // Ensure we properly cleaned up. |
678 manager.reset(); | 678 manager.reset(); |
679 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances()); | 679 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances()); |
680 } | 680 } |
681 | 681 |
682 } // namespace content | 682 } // namespace content |
OLD | NEW |