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

Unified Diff: ash/test/test_shutdown_client.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/lock_state_controller_test_api.cc ('k') | ash/test/test_shutdown_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shutdown_client.h
diff --git a/ash/test/test_shutdown_client.h b/ash/test/test_shutdown_client.h
deleted file mode 100644
index 55c741572a1f02e7331278462cd9ff8e0d1c439f..0000000000000000000000000000000000000000
--- a/ash/test/test_shutdown_client.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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.
-
-#ifndef ASH_TEST_TEST_SHUTDOWN_CLIENT_H_
-#define ASH_TEST_TEST_SHUTDOWN_CLIENT_H_
-
-#include "ash/public/interfaces/shutdown.mojom.h"
-#include "base/macros.h"
-
-namespace ash {
-namespace test {
-
-// Fake implementation of ShutdownClient that just logs requests to lock the
-// screen and shut down the device.
-class TestShutdownClient : public mojom::ShutdownClient {
- public:
- TestShutdownClient();
- ~TestShutdownClient() override;
-
- int num_shutdown_requests() const { return num_shutdown_requests_; }
-
- // LockStateControllerDelegate implementation.
- void RequestShutdown() override;
-
- private:
- int num_shutdown_requests_;
-
- DISALLOW_COPY_AND_ASSIGN(TestShutdownClient);
-};
-
-} // namespace test
-} // namespace ash
-
-#endif // ASH_TEST_TEST_SHUTDOWN_CLIENT_H_
« no previous file with comments | « ash/test/lock_state_controller_test_api.cc ('k') | ash/test/test_shutdown_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698