@@ -112,11 +112,11 @@ TEST_F(ProfileActionTest, CanDoSingleProfile) {
112112 // Check that we can do at least a single profile
113113 dispatcher_->post ([&tid_ltt_pairs, &now, this ]() -> void {
114114 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
115- absl::MutexLock lock (& mutex_);
115+ absl::MutexLock lock (mutex_);
116116 outstanding_notifies_ += 1 ;
117117 });
118118
119- absl::MutexLock lock (& mutex_);
119+ absl::MutexLock lock (mutex_);
120120 waitForOutstandingNotify ();
121121 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
122122
@@ -151,11 +151,11 @@ TEST_F(ProfileActionTest, CanDoMultipleProfiles) {
151151 // Check that we can do at least a single profile
152152 dispatcher_->post ([&tid_ltt_pairs, &now, this ]() -> void {
153153 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
154- absl::MutexLock lock (& mutex_);
154+ absl::MutexLock lock (mutex_);
155155 outstanding_notifies_ += 1 ;
156156 });
157157
158- absl::MutexLock lock (& mutex_);
158+ absl::MutexLock lock (mutex_);
159159 waitForOutstandingNotify ();
160160 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
161161
@@ -169,7 +169,7 @@ TEST_F(ProfileActionTest, CanDoMultipleProfiles) {
169169 // Check we can do multiple profiles
170170 dispatcher_->post ([&tid_ltt_pairs, &now, this ]() -> void {
171171 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
172- absl::MutexLock lock (& mutex_);
172+ absl::MutexLock lock (mutex_);
173173 outstanding_notifies_ += 1 ;
174174 });
175175
@@ -210,11 +210,11 @@ TEST_F(ProfileActionTest, CannotTriggerConcurrentProfiles) {
210210 // This subsequent call should fail since the one prior starts a profile.
211211 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
212212
213- absl::MutexLock lock (& mutex_);
213+ absl::MutexLock lock (mutex_);
214214 outstanding_notifies_ += 1 ;
215215 });
216216
217- absl::MutexLock lock (& mutex_);
217+ absl::MutexLock lock (mutex_);
218218 waitForOutstandingNotify ();
219219 time_system_->advanceTimeWait (std::chrono::seconds (6 ));
220220
@@ -248,11 +248,11 @@ TEST_F(ProfileActionTest, ShouldNotProfileIfDirectoryDoesNotExist) {
248248
249249 dispatcher_->post ([&, this ]() -> void {
250250 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
251- absl::MutexLock lock (& mutex_);
251+ absl::MutexLock lock (mutex_);
252252 outstanding_notifies_ += 1 ;
253253 });
254254
255- absl::MutexLock lock (& mutex_);
255+ absl::MutexLock lock (mutex_);
256256 waitForOutstandingNotify ();
257257 time_system_->advanceTimeWait (std::chrono::seconds (6 ));
258258
@@ -280,11 +280,11 @@ TEST_F(ProfileActionTest, ShouldNotProfileIfNoTids) {
280280 std::vector<std::pair<Thread::ThreadId, MonotonicTime>> tid_ltt_pairs;
281281 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs,
282282 api_->timeSource ().monotonicTime ());
283- absl::MutexLock lock (& mutex_);
283+ absl::MutexLock lock (mutex_);
284284 outstanding_notifies_ += 1 ;
285285 });
286286
287- absl::MutexLock lock (& mutex_);
287+ absl::MutexLock lock (mutex_);
288288 waitForOutstandingNotify ();
289289 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
290290
@@ -316,11 +316,11 @@ TEST_F(ProfileActionTest, ShouldSaturatedMaxProfiles) {
316316
317317 dispatcher_->post ([&, this ]() -> void {
318318 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
319- absl::MutexLock lock (& mutex_);
319+ absl::MutexLock lock (mutex_);
320320 outstanding_notifies_ += 1 ;
321321 });
322322
323- absl::MutexLock lock (& mutex_);
323+ absl::MutexLock lock (mutex_);
324324 waitForOutstandingNotify ();
325325 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
326326
@@ -335,7 +335,7 @@ TEST_F(ProfileActionTest, ShouldSaturatedMaxProfiles) {
335335 // Do another run of the watchdog action. It shouldn't have run again.
336336 dispatcher_->post ([&, this ]() -> void {
337337 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
338- absl::MutexLock lock (& mutex_);
338+ absl::MutexLock lock (mutex_);
339339 outstanding_notifies_ += 1 ;
340340 });
341341
@@ -375,12 +375,12 @@ TEST_F(ProfileActionTest, ShouldUpdateCountersCorrectly) {
375375 dispatcher_->post ([this , &tid_ltt_pairs]() -> void {
376376 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs,
377377 api_->timeSource ().monotonicTime ());
378- absl::MutexLock lock (& mutex_);
378+ absl::MutexLock lock (mutex_);
379379 outstanding_notifies_ += 1 ;
380380 });
381381
382382 {
383- absl::MutexLock lock (& mutex_);
383+ absl::MutexLock lock (mutex_);
384384 waitForOutstandingNotify ();
385385 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
386386 }
@@ -396,12 +396,12 @@ TEST_F(ProfileActionTest, ShouldUpdateCountersCorrectly) {
396396
397397 dispatcher_->post ([this , &tid_ltt_pairs, &now]() -> void {
398398 action_->run (envoy::config::bootstrap::v3::Watchdog::WatchdogAction::MISS, tid_ltt_pairs, now);
399- absl::MutexLock lock (& mutex_);
399+ absl::MutexLock lock (mutex_);
400400 outstanding_notifies_ += 1 ;
401401 });
402402
403403 {
404- absl::MutexLock lock (& mutex_);
404+ absl::MutexLock lock (mutex_);
405405 waitForOutstandingNotify ();
406406 time_system_->advanceTimeWait (std::chrono::seconds (2 ));
407407 }
0 commit comments