[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / chrome / browser / accessibility / browser_accessibility_state_browsertest.cc
blobf23f218995a019e12dc2f38538e5ccffe006af58
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/browser/browser_accessibility_state.h"
6 #include "chrome/test/base/in_process_browser_test.h"
7 #include "chrome/test/base/uma_histogram_helper.h"
9 namespace content {
11 // Note: even though BrowserAccessibilityStateImpl is in content, this
12 // test should be in Chrome because otherwise the Chrome-OS-specific
13 // histograms won't get updated.
14 class BrowserAccessibilityStateImplTest : public InProcessBrowserTest {
17 IN_PROC_BROWSER_TEST_F(BrowserAccessibilityStateImplTest, TestHistograms) {
18 UMAHistogramHelper histograms;
20 BrowserAccessibilityState::GetInstance()->UpdateHistogramsForTesting();
21 histograms.Fetch();
22 histograms.ExpectTotalCount("Accessibility.State", 1);
23 #if defined(OS_WIN)
24 histograms.ExpectTotalCount("Accessibility.WinScreenReader", 1);
25 #elif defined(OS_CHROMEOS)
26 histograms.ExpectTotalCount("Accessibility.CrosSpokenFeedback", 1);
27 #endif
30 } // namespace content