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

Unified Diff: ash/test/ash_test_base.cc

Issue 2131733002: mash: Migrate [Keyboard]Brightness code to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 5 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
« ash/test/ash_test_base.h ('K') | « ash/test/ash_test_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index c6d860953b8f5cef0f6a158067340660b43f6b05..4f713e727450faf33fe480cc9f7372d9b0b72aa8 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -8,6 +8,7 @@
#include <vector>
#include "ash/common/ash_switches.h"
+#include "ash/common/system/brightness_control_delegate.h"
#include "ash/common/wm/window_positioner.h"
#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_shell.h"
@@ -359,5 +360,11 @@ void AshTestBase::DisableIME() {
->input_method_event_handler());
}
+void AshTestBase::SetBrightnessControlDelegate(
+ std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate) {
+ WmShell::Get()->SetBrightnessControlDelegate(
+ std::move(brightness_control_delegate));
+}
+
} // namespace test
} // namespace ash
« ash/test/ash_test_base.h ('K') | « ash/test/ash_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698