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

Unified Diff: Source/wtf/ASCIICTypeTest.cpp

Issue 1177163003: Faster WTF::toASCIILower() implementation for 8-bit strings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed unit test coding style Created 5 years, 6 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
« no previous file with comments | « Source/wtf/ASCIICType.h ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ASCIICTypeTest.cpp
diff --git a/Source/wtf/ASCIICTypeTest.cpp b/Source/wtf/ASCIICTypeTest.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..5904ba106d5c8a3ec23b962c95be2576717d265e
--- /dev/null
+++ b/Source/wtf/ASCIICTypeTest.cpp
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "wtf/ASCIICType.h"
+
+#include <gtest/gtest.h>
+
+namespace WTF {
+
+TEST(ASCIICTypeTest, ASCIICaseFoldTable)
+{
+ LChar symbol = 0xff;
+ while (symbol--) {
+ EXPECT_EQ(toASCIILower<LChar>(symbol), ASCIICaseFoldTable[symbol]);
+ }
+}
+
+}
« no previous file with comments | « Source/wtf/ASCIICType.h ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698