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

Unified Diff: ash/test/lock_state_controller_test_api.cc

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)
Patch Set: Remove DCHECK which was breaing tests. 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 side-by-side diff with in-line comments
Download patch
Index: ash/test/lock_state_controller_test_api.cc
diff --git a/ash/test/lock_state_controller_test_api.cc b/ash/test/lock_state_controller_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b1734685e5bcc089e12298daf4dc38bf2ce423fa
--- /dev/null
+++ b/ash/test/lock_state_controller_test_api.cc
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/test/lock_state_controller_test_api.h"
+
+#include <memory>
+#include <utility>
+
+#include "ash/public/interfaces/shutdown.mojom.h"
+
+namespace ash {
+namespace test {
+
+LockStateControllerTestApi::LockStateControllerTestApi(
+ LockStateController* controller)
+ : controller_(controller) {
+ DCHECK(controller);
+}
+
+LockStateControllerTestApi::~LockStateControllerTestApi() {}
+
+void LockStateControllerTestApi::SetShutdownClient(
+ std::unique_ptr<mojom::ShutdownClient> client) {
+ controller_->shutdown_client_ = std::move(client);
+}
+
+} // namespace test
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698