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

Side by Side Diff: ash/test/test_system_tray_delegate.cc

Issue 2217713002: Remove the system menu display settings row (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates unittests Created 4 years, 4 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/test/test_system_tray_delegate.h" 5 #include "ash/test/test_system_tray_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/common/login_status.h" 9 #include "ash/common/login_status.h"
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
11 #include "ash/common/wm_shell.h" 11 #include "ash/common/wm_shell.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 15
16 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
17 #include "ash/system/chromeos/rotation/tray_rotation_lock.h" 17 #include "ash/system/chromeos/rotation/tray_rotation_lock.h"
18 #include "ash/system/chromeos/tray_display.h" 18 #include "ash/system/chromeos/screen_layout_observer.h"
James Cook 2016/08/15 21:42:15 unused?
yiyix 2016/08/16 15:58:37 Done.
19 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
20 #else 20 #else
21 #include "ash/common/system/tray/system_tray_item.h" 21 #include "ash/common/system/tray/system_tray_item.h"
22 #endif 22 #endif
23 23
24 namespace ash { 24 namespace ash {
25 namespace test { 25 namespace test {
26 26
27 namespace { 27 namespace {
28 28
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 base::TimeDelta* session_length_limit) { 113 base::TimeDelta* session_length_limit) {
114 if (session_length_limit_set_) 114 if (session_length_limit_set_)
115 *session_length_limit = session_length_limit_; 115 *session_length_limit = session_length_limit_;
116 return session_length_limit_set_; 116 return session_length_limit_set_;
117 } 117 }
118 118
119 void TestSystemTrayDelegate::SignOut() { 119 void TestSystemTrayDelegate::SignOut() {
120 base::MessageLoop::current()->QuitWhenIdle(); 120 base::MessageLoop::current()->QuitWhenIdle();
121 } 121 }
122 122
123 std::unique_ptr<SystemTrayItem> TestSystemTrayDelegate::CreateDisplayTrayItem(
124 SystemTray* tray) {
125 #if defined(OS_CHROMEOS)
126 return base::MakeUnique<TrayDisplay>(tray);
127 #else
128 return nullptr;
129 #endif
130 }
131
132 std::unique_ptr<SystemTrayItem> 123 std::unique_ptr<SystemTrayItem>
133 TestSystemTrayDelegate::CreateRotationLockTrayItem(SystemTray* tray) { 124 TestSystemTrayDelegate::CreateRotationLockTrayItem(SystemTray* tray) {
134 #if defined(OS_CHROMEOS) 125 #if defined(OS_CHROMEOS)
135 return base::MakeUnique<TrayRotationLock>(tray); 126 return base::MakeUnique<TrayRotationLock>(tray);
136 #else 127 #else
137 return nullptr; 128 return nullptr;
138 #endif 129 #endif
139 } 130 }
140 131
141 void TestSystemTrayDelegate::GetCurrentIME(IMEInfo* info) { 132 void TestSystemTrayDelegate::GetCurrentIME(IMEInfo* info) {
142 *info = current_ime_; 133 *info = current_ime_;
143 } 134 }
144 135
145 } // namespace test 136 } // namespace test
146 } // namespace ash 137 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698