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

Side by Side Diff: third_party/WebKit/Source/wtf/text/StringImplTest.cpp

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "wtf/text/StringImpl.h" 27 #include "wtf/text/StringImpl.h"
28 28
29 #include "wtf/text/WTFString.h" 29 #include "wtf/text/WTFString.h"
30 #include <gtest/gtest.h> 30 #include <gtest/gtest.h>
31 31
32 namespace WTF { 32 namespace WTF {
33 33
34 TEST(StringImplTest, Create8Bit) 34 TEST(StringImplTest, Create8Bit) {
35 { 35 RefPtr<StringImpl> testStringImpl = StringImpl::create("1224");
36 RefPtr<StringImpl> testStringImpl = StringImpl::create("1224"); 36 EXPECT_TRUE(testStringImpl->is8Bit());
37 EXPECT_TRUE(testStringImpl->is8Bit());
38 } 37 }
39 38
40 TEST(StringImplTest, Latin1CaseFoldTable) 39 TEST(StringImplTest, Latin1CaseFoldTable) {
41 { 40 LChar symbol = 0xff;
42 LChar symbol = 0xff; 41 while (symbol--) {
43 while (symbol--) { 42 EXPECT_EQ(Unicode::foldCase(symbol), StringImpl::latin1CaseFoldTable[symbol] );
44 EXPECT_EQ(Unicode::foldCase(symbol), StringImpl::latin1CaseFoldTable[sym bol]); 43 }
45 }
46 } 44 }
47 45
48 } // namespace WTF 46 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImplCF.cpp ('k') | third_party/WebKit/Source/wtf/text/StringOperators.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698