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

Side by Side Diff: ash/metrics/pointer_metrics_recorder_unittest.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ash/metrics/pointer_metrics_recorder.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/metrics/pointer_metrics_recorder.h" 5 #include "ash/metrics/pointer_metrics_recorder.h"
6 6
7 #include "ash/common/wm_shell.h"
8 #include "ash/common/wm_window.h"
7 #include "ash/public/cpp/shell_window_ids.h" 9 #include "ash/public/cpp/shell_window_ids.h"
8 #include "ash/shared/app_types.h" 10 #include "ash/shared/app_types.h"
9 #include "ash/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
10 #include "ash/wm/maximize_mode/maximize_mode_controller.h" 12 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
11 #include "ash/wm_shell.h"
12 #include "ash/wm_window.h"
13 #include "base/test/histogram_tester.h" 13 #include "base/test/histogram_tester.h"
14 #include "ui/events/event.h" 14 #include "ui/events/event.h"
15 #include "ui/views/pointer_watcher.h" 15 #include "ui/views/pointer_watcher.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 using views::PointerWatcher; 18 using views::PointerWatcher;
19 19
20 namespace ash { 20 namespace ash {
21 namespace { 21 namespace {
22 22
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 target.get()); 176 target.get());
177 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 2, 1); 177 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 2, 1);
178 178
179 window->SetAppType(static_cast<int>(AppType::ARC_APP)); 179 window->SetAppType(static_cast<int>(AppType::ARC_APP));
180 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), 180 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(),
181 target.get()); 181 target.get());
182 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); 182 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1);
183 } 183 }
184 184
185 } // namespace ash 185 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/pointer_metrics_recorder.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698