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

Side by Side Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc

Issue 1636153002: Give user ability to file a feedback report from the display error notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 5 #include <stdint.h>
6 #include <X11/extensions/Xrandr.h> 6 #include <X11/extensions/Xrandr.h>
7 7
8 #undef Bool 8 #undef Bool
9 #undef None 9 #undef None
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 DisplaySnapshotX11* snapshot = new DisplaySnapshotX11( 30 DisplaySnapshotX11* snapshot = new DisplaySnapshotX11(
31 id, 31 id,
32 gfx::Point(0, 0), 32 gfx::Point(0, 0),
33 gfx::Size(0, 0), 33 gfx::Size(0, 0),
34 type, 34 type,
35 false, 35 false,
36 false, 36 false,
37 std::string(), 37 std::string(),
38 std::vector<const DisplayMode*>(1, kDefaultDisplayMode), 38 std::vector<const DisplayMode*>(1, kDefaultDisplayMode),
39 std::vector<uint8_t>(),
39 kDefaultDisplayMode, 40 kDefaultDisplayMode,
40 NULL, 41 NULL,
41 output, 42 output,
42 crtc, 43 crtc,
43 0); 44 0);
44 45
45 return snapshot; 46 return snapshot;
46 } 47 }
47 48
48 DisplaySnapshotX11* CreateExternalOutput(RROutput output, RRCrtc crtc) { 49 DisplaySnapshotX11* CreateExternalOutput(RROutput output, RRCrtc crtc) {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 outputs.clear(); 321 outputs.clear();
321 outputs.push_back(CreateOutput(0, DISPLAY_CONNECTION_TYPE_UNKNOWN, 2, 11)); 322 outputs.push_back(CreateOutput(0, DISPLAY_CONNECTION_TYPE_UNKNOWN, 2, 11));
322 helper_delegate_->set_cached_outputs(outputs.get()); 323 helper_delegate_->set_cached_outputs(outputs.get());
323 324
324 // External display should be updated if the id is zero. 325 // External display should be updated if the id is zero.
325 DispatchOutputChangeEvent(2, 11, 20, true); 326 DispatchOutputChangeEvent(2, 11, 20, true);
326 EXPECT_EQ(1, helper_delegate_->num_calls_notify_observers()); 327 EXPECT_EQ(1, helper_delegate_->num_calls_notify_observers());
327 } 328 }
328 329
329 } // namespace ui 330 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/types/display_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698