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

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

Issue 2497123002: chromeos: Move device shutdown handling out of chrome into ash (Closed)
Patch Set: rebase Created 4 years, 1 month 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/test/lock_state_controller_test_api.h ('k') | ash/test/test_shutdown_client.h » ('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/test/lock_state_controller_test_api.h" 5 #include "ash/test/lock_state_controller_test_api.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/public/interfaces/shutdown.mojom.h" 10 #include "ash/public/interfaces/shutdown.mojom.h"
11 11
12 namespace ash { 12 namespace ash {
13 namespace test { 13 namespace test {
14 14
15 LockStateControllerTestApi::LockStateControllerTestApi( 15 LockStateControllerTestApi::LockStateControllerTestApi(
16 LockStateController* controller) 16 LockStateController* controller)
17 : controller_(controller) { 17 : controller_(controller) {
18 DCHECK(controller); 18 DCHECK(controller);
19 } 19 }
20 20
21 LockStateControllerTestApi::~LockStateControllerTestApi() {} 21 LockStateControllerTestApi::~LockStateControllerTestApi() {}
22 22
23 void LockStateControllerTestApi::SetShutdownClient(
24 std::unique_ptr<mojom::ShutdownClient> client) {
25 controller_->shutdown_client_ = std::move(client);
26 }
27
28 } // namespace test 23 } // namespace test
29 } // namespace ash 24 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/lock_state_controller_test_api.h ('k') | ash/test/test_shutdown_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698