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

Side by Side Diff: ash/common/system/chromeos/screen_security/screen_tray_item_unittest.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/system/chromeos/screen_security/screen_tray_item.h" 5 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h"
6 6
7 #include "ash/common/system/chromeos/screen_security/screen_capture_tray_item.h" 7 #include "ash/common/system/chromeos/screen_security/screen_capture_tray_item.h"
8 #include "ash/common/system/chromeos/screen_security/screen_share_tray_item.h" 8 #include "ash/common/system/chromeos/screen_security/screen_share_tray_item.h"
9 #include "ash/common/system/tray/system_tray.h" 9 #include "ash/common/system/tray/system_tray.h"
10 #include "ash/common/system/tray/system_tray_notifier.h" 10 #include "ash/common/system/tray/system_tray_notifier.h"
(...skipping 15 matching lines...) Expand all
26 const char kTestScreenCaptureAppName[] = 26 const char kTestScreenCaptureAppName[] =
27 "\xE0\xB2\xA0\x5F\xE0\xB2\xA0 (Screen Capture Test)"; 27 "\xE0\xB2\xA0\x5F\xE0\xB2\xA0 (Screen Capture Test)";
28 const char kTestScreenShareHelperName[] = 28 const char kTestScreenShareHelperName[] =
29 "\xE5\xAE\x8B\xE8\x85\xBE (Screen Share Test)"; 29 "\xE5\xAE\x8B\xE8\x85\xBE (Screen Share Test)";
30 30
31 void ClickViewCenter(views::View* view) { 31 void ClickViewCenter(views::View* view) {
32 gfx::Point click_location_in_local = 32 gfx::Point click_location_in_local =
33 gfx::Point(view->width() / 2, view->height() / 2); 33 gfx::Point(view->width() / 2, view->height() / 2);
34 view->OnMousePressed(ui::MouseEvent( 34 view->OnMousePressed(ui::MouseEvent(
35 ui::ET_MOUSE_PRESSED, click_location_in_local, click_location_in_local, 35 ui::ET_MOUSE_PRESSED, click_location_in_local, click_location_in_local,
36 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE)); 36 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
37 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)));
37 } 38 }
38 39
39 class ScreenTrayItemTest : public AshTest { 40 class ScreenTrayItemTest : public AshTest {
40 public: 41 public:
41 ScreenTrayItemTest() : tray_item_(NULL), stop_callback_hit_count_(0) {} 42 ScreenTrayItemTest() : tray_item_(NULL), stop_callback_hit_count_(0) {}
42 ~ScreenTrayItemTest() override {} 43 ~ScreenTrayItemTest() override {}
43 44
44 ScreenTrayItem* tray_item() { return tray_item_; } 45 ScreenTrayItem* tray_item() { return tray_item_; }
45 void set_tray_item(ScreenTrayItem* tray_item) { tray_item_ = tray_item; } 46 void set_tray_item(ScreenTrayItem* tray_item) { tray_item_ = tray_item; }
46 47
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 TEST_F(ScreenCaptureTest, SystemTrayInteraction) { 217 TEST_F(ScreenCaptureTest, SystemTrayInteraction) {
217 TestSystemTrayInteraction(this); 218 TestSystemTrayInteraction(this);
218 } 219 }
219 220
220 TEST_F(ScreenShareTest, SystemTrayInteraction) { 221 TEST_F(ScreenShareTest, SystemTrayInteraction) {
221 TestSystemTrayInteraction(this); 222 TestSystemTrayInteraction(this);
222 } 223 }
223 224
224 } // namespace ash 225 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698