Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index 502851bbcee267c09dfa18fcadc2994097cafee1..54b83e2658195d2e623230088656ec49d0703d04 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -771,6 +771,7 @@ class FlexfecRenderObserver : public test::EndToEndTest, |
EXPECT_EQ(1U, report_blocks.size()); |
EXPECT_EQ(test::CallTest::kFlexfecSendSsrc, |
report_blocks[0].source_ssrc()); |
+ rtc::CritScope lock(&crit_); |
received_flexfec_rtcp_ = true; |
} |
} |
@@ -813,8 +814,8 @@ class FlexfecRenderObserver : public test::EndToEndTest, |
// Since several packets can have the same timestamp a multiset is used |
// instead of a set. |
std::multiset<uint32_t> dropped_timestamps_ GUARDED_BY(crit_); |
- bool expect_flexfec_rtcp_; |
- bool received_flexfec_rtcp_; |
+ const bool expect_flexfec_rtcp_; |
+ bool received_flexfec_rtcp_ GUARDED_BY(crit_); |
Random random_; |
}; |