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

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

Issue 2588403002: TestingPlatformSupport: register Platform instance correctly (Closed)
Patch Set: LocaleMacTest needed same caller side fix Created 3 years, 11 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/LocaleMacTest.cpp
diff --git a/third_party/WebKit/Source/platform/text/LocaleMacTest.cpp b/third_party/WebKit/Source/platform/text/LocaleMacTest.cpp
index 956b133cd93b030b9064c8fdee32e5ae04ff9c4f..6de13f31bcafb5a414c4d248d69fc51b1e3a12e2 100644
--- a/third_party/WebKit/Source/platform/text/LocaleMacTest.cpp
+++ b/third_party/WebKit/Source/platform/text/LocaleMacTest.cpp
@@ -31,6 +31,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/DateMath.h"
#include "wtf/MathExtras.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/CString.h"
#include <memory>
@@ -189,7 +190,8 @@ class LocaleMacTest : public ::testing::Test {
};
TEST_F(LocaleMacTest, formatWeek) {
- LocalePlatformSupport support;
+ ScopedTestingPlatformSupport<LocalePlatformSupport> support(
+ WTFL::makeUnique<LocalePlatformSupport>());
EXPECT_STREQ("Week 04, 2005", formatWeek("en_US", "2005-W04").utf8().data());
EXPECT_STREQ("Week 52, 2005", formatWeek("en_US", "2005-W52").utf8().data());
}

Powered by Google App Engine
This is Rietveld 408576698