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

Side by Side Diff: chrome/browser/accessibility/browser_accessibility_state_browsertest.cc

Issue 11778045: Add test for accessibility histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
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"
8
9 namespace content {
10
11 class BrowserAccessibilityStateImplTest : public InProcessBrowserTest {
12 };
13
14 IN_PROC_BROWSER_TEST_F(BrowserAccessibilityStateImplTest, TestHistograms) {
15 UMAHistogramHelper histograms;
16
17 BrowserAccessibilityState::GetInstance()->UpdateHistograms();
18 histograms.Fetch();
19 histograms.ExpectTotalCount("Accessibility.State", 1);
20 #if defined(OS_WIN)
21 histograms.ExpectTotalCount("Accessibility.WinScreenReader", 1);
22 #elif defined(OS_CHROMEOS)
23 histograms.ExpectTotalCount("Accessibility.CrosSpokenFeedback", 1);
24 #endif
25 }
26
27 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | content/public/browser/browser_accessibility_state.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698