|
Refactor the Get*Hardware* routines a bit.
These methods currently all have a static variable that caches the queried value.
This causes a problem in unit tests where values can change between tests.
I moved them outside of the AudioDevice class and grouped in their own namespace
which owns the globally cached state and allows the cache to be invalidated.
R=henrika
TEST=Run *WebRTC* tests in content.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110695
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+132 lines, -54 lines) |
Patch |
 |
M |
content/content_renderer.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/audio_device.h
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/audio_device.cc
|
View
|
1
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
A |
content/renderer/media/audio_hardware.h
|
View
|
1
2
3
4
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/renderer/media/audio_hardware.cc
|
View
|
1
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_device_impl.cc
|
View
|
1
|
2 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_device_unittest.cc
|
View
|
1
2
3
4
|
8 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_webkitplatformsupport_impl.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/webrtc_audio_device_test.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/test/webrtc_audio_device_test.cc
|
View
|
1
2
3
|
6 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|