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

Side by Side Diff: chromeos/audio/audio_devices_pref_handler_impl_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/audio/audio_devices_pref_handler_impl.h" 5 #include "chromeos/audio/audio_devices_pref_handler_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/prefs/testing_pref_service.h"
12 #include "chromeos/audio/audio_device.h" 11 #include "chromeos/audio/audio_device.h"
13 #include "chromeos/audio/audio_devices_pref_handler.h" 12 #include "chromeos/audio/audio_devices_pref_handler.h"
14 #include "chromeos/chromeos_pref_names.h" 13 #include "chromeos/chromeos_pref_names.h"
15 #include "chromeos/dbus/audio_node.h" 14 #include "chromeos/dbus/audio_node.h"
15 #include "components/prefs/testing_pref_service.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 const uint64_t kInternalMicId = 10003; 20 const uint64_t kInternalMicId = 10003;
21 const uint64_t kHeadphoneId = 10002; 21 const uint64_t kHeadphoneId = 10002;
22 const uint64_t kHDMIOutputId = 10006; 22 const uint64_t kHDMIOutputId = 10006;
23 const uint64_t kOtherTypeOutputId = 90001; 23 const uint64_t kOtherTypeOutputId = 90001;
24 const uint64_t kOtherTypeInputId = 90002; 24 const uint64_t kOtherTypeInputId = 90002;
25 25
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 audio_pref_handler_->GetDeviceState(kInternalMic)); 140 audio_pref_handler_->GetDeviceState(kInternalMic));
141 audio_pref_handler_->SetDeviceState(kHeadphone, AUDIO_STATE_ACTIVE); 141 audio_pref_handler_->SetDeviceState(kHeadphone, AUDIO_STATE_ACTIVE);
142 EXPECT_EQ(AUDIO_STATE_ACTIVE, 142 EXPECT_EQ(AUDIO_STATE_ACTIVE,
143 audio_pref_handler_->GetDeviceState(kHeadphone)); 143 audio_pref_handler_->GetDeviceState(kHeadphone));
144 audio_pref_handler_->SetDeviceState(kHDMIOutput, AUDIO_STATE_INACTIVE); 144 audio_pref_handler_->SetDeviceState(kHDMIOutput, AUDIO_STATE_INACTIVE);
145 EXPECT_EQ(AUDIO_STATE_INACTIVE, 145 EXPECT_EQ(AUDIO_STATE_INACTIVE,
146 audio_pref_handler_->GetDeviceState(kHDMIOutput)); 146 audio_pref_handler_->GetDeviceState(kHDMIOutput));
147 } 147 }
148 148
149 } // namespace chromeos 149 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_impl.cc ('k') | chromeos/login/auth/login_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698