Index: ash/test/volume_control_delegate_stub.cc |
diff --git a/ash/test/volume_control_delegate_stub.cc b/ash/test/volume_control_delegate_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..828e5997a0bcbfd4ed3102c41e260d7e2cd57431 |
--- /dev/null |
+++ b/ash/test/volume_control_delegate_stub.cc |
@@ -0,0 +1,40 @@ |
+// Copyright 2014 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/volume_control_delegate_stub.h" |
+ |
+namespace ash { |
+ |
+VolumeControlDelegateStub::VolumeControlDelegateStub(bool consume) |
+ : consume_(consume), |
flackr
2014/04/29 21:43:54
indent ':' 4 spaces, everything, keep variables li
bruthig
2014/04/30 14:04:45
Done.
|
+ handle_volume_mute_count_(0), |
+ handle_volume_down_count_(0), |
+ handle_volume_up_count_(0) { |
+} |
+ |
+VolumeControlDelegateStub::~VolumeControlDelegateStub() {} |
+ |
+bool VolumeControlDelegateStub::HandleVolumeMute( |
+ const ui::Accelerator& accelerator) { |
flackr
2014/04/29 21:43:54
Here and below, indent method parameters 4 spaces.
bruthig
2014/04/30 14:04:45
Done.
|
+ ++handle_volume_mute_count_; |
+ last_accelerator_ = accelerator; |
+ return consume_; |
+} |
+ |
+bool VolumeControlDelegateStub::HandleVolumeDown( |
+ const ui::Accelerator& accelerator) { |
+ ++handle_volume_down_count_; |
+ last_accelerator_ = accelerator; |
+ return consume_; |
+} |
+ |
+bool VolumeControlDelegateStub::HandleVolumeUp( |
+ const ui::Accelerator& accelerator) { |
+ ++handle_volume_up_count_; |
+ last_accelerator_ = accelerator; |
+ return consume_; |
+} |
+ |
+} // namespace ash |
+ |
flackr
2014/04/29 21:43:54
nit: no extra newline at end of file.
bruthig
2014/04/30 14:04:45
Done.
|