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

Unified Diff: content/renderer/media/media_stream_constraints_util_audio_unittest.cc

Issue 2960973002: Work around dllimport member function pointer bug in clang (Closed)
Patch Set: remove whitespace change Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_constraints_util_audio_unittest.cc
diff --git a/content/renderer/media/media_stream_constraints_util_audio_unittest.cc b/content/renderer/media/media_stream_constraints_util_audio_unittest.cc
index 8a5da6dd73fae89c9d7eb3622daae6cb80050304..73fa230bec35a5bf7d94bae5d0c394e0a25cee9f 100644
--- a/content/renderer/media/media_stream_constraints_util_audio_unittest.cc
+++ b/content/renderer/media/media_stream_constraints_util_audio_unittest.cc
@@ -326,10 +326,12 @@ TEST_P(MediaStreamConstraintsUtilAudioTest, Unconstrained) {
// echo cancellation constraints, which are not mapped 1:1 to output audio
// processing properties).
TEST_P(MediaStreamConstraintsUtilAudioTest, SingleBoolConstraint) {
- const AudioSettingsBoolMembers kMainSettings = {
- &AudioCaptureSettings::hotword_enabled,
- &AudioCaptureSettings::disable_local_echo,
- &AudioCaptureSettings::render_to_associated_sink};
+ // TODO(crbug.com/736309): Use braced initialization instead of push_back once
+ // clang has been fixed.
+ AudioSettingsBoolMembers kMainSettings;
+ kMainSettings.push_back(&AudioCaptureSettings::hotword_enabled);
+ kMainSettings.push_back(&AudioCaptureSettings::disable_local_echo);
+ kMainSettings.push_back(&AudioCaptureSettings::render_to_associated_sink);
const std::vector<
blink::BooleanConstraint blink::WebMediaTrackConstraintSet::*>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698