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

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

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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 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/common/metrics/pointer_metrics_recorder.h" 5 #include "ash/common/metrics/pointer_metrics_recorder.h"
6 6
7 #include "ash/common/shell_window_ids.h"
8 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
9 #include "ash/common/wm_lookup.h" 8 #include "ash/common/wm_lookup.h"
10 #include "ash/common/wm_shell.h" 9 #include "ash/common/wm_shell.h"
11 #include "ash/common/wm_window.h" 10 #include "ash/common/wm_window.h"
11 #include "ash/public/cpp/shell_window_ids.h"
12 #include "ash/shared/app_types.h" 12 #include "ash/shared/app_types.h"
13 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
14 #include "base/test/histogram_tester.h" 14 #include "base/test/histogram_tester.h"
15 #include "ui/events/event.h" 15 #include "ui/events/event.h"
16 #include "ui/views/pointer_watcher.h" 16 #include "ui/views/pointer_watcher.h"
17 #include "ui/views/widget/widget.h" 17 #include "ui/views/widget/widget.h"
18 18
19 using views::PointerWatcher; 19 using views::PointerWatcher;
20 20
21 namespace ash { 21 namespace ash {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 target.get()); 182 target.get());
183 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); 183 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1);
184 184
185 window->SetAppType(static_cast<int>(AppType::DEFAULT_NOTE_TAKING_APP)); 185 window->SetAppType(static_cast<int>(AppType::DEFAULT_NOTE_TAKING_APP));
186 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), 186 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(),
187 target.get()); 187 target.get());
188 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 4, 1); 188 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 4, 1);
189 } 189 }
190 190
191 } // namespace ash 191 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/frame/default_header_painter_unittest.cc ('k') | ash/common/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698