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

Unified Diff: ash/test/test_shell_delegate.h

Issue 2821303004: cros: Suspend media sessions with display off trigger by tablet power button (Closed)
Patch Set: rebase Created 3 years, 7 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 | « ash/system/power/tablet_power_button_controller_unittest.cc ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shell_delegate.h
diff --git a/ash/test/test_shell_delegate.h b/ash/test/test_shell_delegate.h
index fcf01c7a024c312cbc4864aad5b9c95d6c952239..a5a0467d7bb23e80cba0bfb01337bb79f927fb03 100644
--- a/ash/test/test_shell_delegate.h
+++ b/ash/test/test_shell_delegate.h
@@ -63,6 +63,7 @@ class TestShellDelegate : public ShellDelegate {
void SetTouchscreenEnabledInPrefs(bool enabled,
bool use_local_state) override;
void UpdateTouchscreenStatusFromPrefs() override;
+ void SuspendMediaSessions() override;
int num_exit_requests() const { return num_exit_requests_; }
@@ -70,13 +71,16 @@ class TestShellDelegate : public ShellDelegate {
force_maximize_on_first_run_ = maximize;
}
+ bool media_sessions_suspended() const { return media_sessions_suspended_; }
+
private:
- int num_exit_requests_;
- bool multi_profiles_enabled_;
- bool force_maximize_on_first_run_;
- bool touchscreen_enabled_in_local_pref_;
+ int num_exit_requests_ = 0;
+ bool multi_profiles_enabled_ = false;
+ bool force_maximize_on_first_run_ = false;
+ bool touchscreen_enabled_in_local_pref_ = true;
+ bool media_sessions_suspended_ = false;
std::unique_ptr<ShelfInitializer> shelf_initializer_;
- PrefService* active_user_pref_service_; // Not owned.
+ PrefService* active_user_pref_service_ = nullptr; // Not owned.
DISALLOW_COPY_AND_ASSIGN(TestShellDelegate);
};
« no previous file with comments | « ash/system/power/tablet_power_button_controller_unittest.cc ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698