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

Unified Diff: chromeos/audio/audio_devices_pref_handler_impl_unittest.cc

Issue 817013002: cros: Remove system-level policy for audio capture allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (allow-audio) rebase Created 5 years, 11 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 | « chromeos/audio/audio_devices_pref_handler_impl.cc ('k') | chromeos/audio/audio_devices_pref_handler_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
diff --git a/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc b/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
index a3f7e77c916017acbc3ad2c8e909710692d83cd5..ba871325debb5cd4c47a626a676e7023f11d4130 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
+++ b/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
@@ -62,8 +62,6 @@ const AudioDevice kOutputDeviceWithSpecialCharacters(
false,
0));
-const char kAudioCaptureAllowedPref[] = "audio_capture_allowed";
-
class AudioDevicesPrefHandlerTest : public testing::Test {
public:
AudioDevicesPrefHandlerTest() {}
@@ -71,10 +69,8 @@ class AudioDevicesPrefHandlerTest : public testing::Test {
void SetUp() override {
pref_service_.reset(new TestingPrefServiceSimple());
- AudioDevicesPrefHandlerImpl::RegisterPrefs(pref_service_->registry(),
- kAudioCaptureAllowedPref);
- audio_pref_handler_ = new AudioDevicesPrefHandlerImpl(
- pref_service_.get(), kAudioCaptureAllowedPref);
+ AudioDevicesPrefHandlerImpl::RegisterPrefs(pref_service_->registry());
+ audio_pref_handler_ = new AudioDevicesPrefHandlerImpl(pref_service_.get());
}
void TearDown() override { audio_pref_handler_ = NULL; }
@@ -102,9 +98,6 @@ TEST_F(AudioDevicesPrefHandlerTest, PrefsRegistered) {
EXPECT_TRUE(pref_service_->FindPreference(prefs::kAudioOutputAllowed));
EXPECT_TRUE(pref_service_->FindPreference(prefs::kAudioVolumePercent));
EXPECT_TRUE(pref_service_->FindPreference(prefs::kAudioMute));
-
- // The optional pref is also registered.
- EXPECT_TRUE(pref_service_->FindPreference(kAudioCaptureAllowedPref));
}
TEST_F(AudioDevicesPrefHandlerTest, TestBasicInputOutputDevices) {
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_impl.cc ('k') | chromeos/audio/audio_devices_pref_handler_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698