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

Unified Diff: third_party/WebKit/Source/platform/text/CharacterTest.cpp

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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
Index: third_party/WebKit/Source/platform/text/CharacterTest.cpp
diff --git a/third_party/WebKit/Source/platform/text/CharacterTest.cpp b/third_party/WebKit/Source/platform/text/CharacterTest.cpp
index 55f07d7258af61c4981cd31108e463bd1b849843..55e4c6892a9e4534f7085e3e4ef57b1b03ef0144 100644
--- a/third_party/WebKit/Source/platform/text/CharacterTest.cpp
+++ b/third_party/WebKit/Source/platform/text/CharacterTest.cpp
@@ -9,18 +9,19 @@
namespace blink {
-testing::AssertionResult IsCJKIdeographOrSymbolWithMessage(UChar32 codepoint) {
+::testing::AssertionResult IsCJKIdeographOrSymbolWithMessage(
+ UChar32 codepoint) {
const size_t kFormatBufferSize = 10;
char formatted_as_hex[kFormatBufferSize];
snprintf(formatted_as_hex, kFormatBufferSize, "0x%x", codepoint);
if (Character::IsCJKIdeographOrSymbol(codepoint)) {
- return testing::AssertionSuccess()
+ return ::testing::AssertionSuccess()
<< "Codepoint " << formatted_as_hex << " is a CJKIdeographOrSymbol.";
}
- return testing::AssertionFailure() << "Codepoint " << formatted_as_hex
- << " is not a CJKIdeographOrSymbol.";
+ return ::testing::AssertionFailure() << "Codepoint " << formatted_as_hex
+ << " is not a CJKIdeographOrSymbol.";
}
TEST(CharacterTest, HammerEmojiVsCJKIdeographOrSymbol) {

Powered by Google App Engine
This is Rietveld 408576698