Fully qualify googletest symbols.

Semi-automatically created with:

git grep -l " testing::" | xargs sed -i "s/ testing::/ ::testing::/g"
git grep -l "(testing::" | xargs sed -i "s/(testing::/(::testing::/g"
git cl format

After this, two .cc files failed to compile and I have fixed them
manually.

Bug: webrtc:10523
Change-Id: I4741d3bcedc831b6c5fdc04485678617eb4ce031
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132018
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27526}
This commit is contained in:
Mirko Bonadei
2019-04-09 15:11:12 +02:00
committed by Commit Bot
parent a857698d54
commit 6a489f22c7
210 changed files with 818 additions and 808 deletions

View File

@ -23,7 +23,7 @@ class MockYieldHandler : public YieldInterface {
};
} // namespace
TEST(YieldPolicyTest, HandlerReceivesYieldSignalWhenSet) {
testing::StrictMock<MockYieldHandler> handler;
::testing::StrictMock<MockYieldHandler> handler;
{
Event event;
EXPECT_CALL(handler, YieldExecution()).Times(1);
@ -42,7 +42,7 @@ TEST(YieldPolicyTest, HandlerReceivesYieldSignalWhenSet) {
TEST(YieldPolicyTest, IsThreadLocal) {
Event events[3];
std::thread other_thread([&]() {
testing::StrictMock<MockYieldHandler> local_handler;
::testing::StrictMock<MockYieldHandler> local_handler;
// The local handler is never called as we never Wait on this thread.
EXPECT_CALL(local_handler, YieldExecution()).Times(0);
ScopedYieldPolicy policy(&local_handler);
@ -58,7 +58,7 @@ TEST(YieldPolicyTest, IsThreadLocal) {
events[1].Wait(Event::kForever);
// We can set a policy that's active on this thread independently.
testing::StrictMock<MockYieldHandler> main_handler;
::testing::StrictMock<MockYieldHandler> main_handler;
EXPECT_CALL(main_handler, YieldExecution()).Times(1);
ScopedYieldPolicy policy(&main_handler);
events[2].Wait(Event::kForever);