Skip to content

Commit f67c967

Browse files
Automated Code Change
PiperOrigin-RevId: 850604700
1 parent 0fa45b2 commit f67c967

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/google/protobuf/io/zero_copy_stream_unittest.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,13 +1449,13 @@ TEST_F(IoTest, NonBlockingFileIo) {
14491449
ASSERT_EQ(fcntl(fd[1], F_SETFL, O_NONBLOCK), 0);
14501450

14511451
absl::Mutex go_write;
1452-
go_write.Lock();
1452+
go_write.lock();
14531453

14541454
bool done_reading = false;
14551455

14561456
std::thread write_thread([this, fd, &go_write, i]() {
1457-
go_write.Lock();
1458-
go_write.Unlock();
1457+
go_write.lock();
1458+
go_write.unlock();
14591459
FileOutputStream output(fd[1], kBlockSizes[i]);
14601460
WriteStuff(&output);
14611461
EXPECT_EQ(0, output.GetErrno());
@@ -1474,7 +1474,7 @@ TEST_F(IoTest, NonBlockingFileIo) {
14741474
// reading thread waits for the data to be available before returning.
14751475
std::this_thread::sleep_for(std::chrono::milliseconds(100));
14761476
EXPECT_FALSE(done_reading);
1477-
go_write.Unlock();
1477+
go_write.unlock();
14781478
write_thread.join();
14791479
read_thread.join();
14801480
EXPECT_TRUE(done_reading);

0 commit comments

Comments
 (0)