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

Unified Diff: device/vibration/vibration_manager_impl_default.cc

Issue 2815623003: Revert of [DeviceService] Add service tests for VibrationManager. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vibration/vibration_manager_impl.h ('k') | services/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/vibration_manager_impl_default.cc
diff --git a/device/vibration/vibration_manager_impl_default.cc b/device/vibration/vibration_manager_impl_default.cc
index c073f69a1f0fecfc80974aee551ff36af7cf822d..642ddbb75161cf868ff32f51c6a18561b22d5c3e 100644
--- a/device/vibration/vibration_manager_impl_default.cc
+++ b/device/vibration/vibration_manager_impl_default.cc
@@ -11,9 +11,6 @@
namespace device {
-int64_t VibrationManagerImpl::milli_seconds_for_testing_ = -1;
-bool VibrationManagerImpl::cancelled_for_testing_ = false;
-
namespace {
class VibrationManagerEmptyImpl : public mojom::VibrationManager {
@@ -22,14 +19,10 @@
~VibrationManagerEmptyImpl() override {}
void Vibrate(int64_t milliseconds, const VibrateCallback& callback) override {
- VibrationManagerImpl::milli_seconds_for_testing_ = milliseconds;
callback.Run();
}
- void Cancel(const CancelCallback& callback) override {
- VibrationManagerImpl::cancelled_for_testing_ = true;
- callback.Run();
- }
+ void Cancel(const CancelCallback& callback) override { callback.Run(); }
};
} // namespace
« no previous file with comments | « device/vibration/vibration_manager_impl.h ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698