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

Side by Side Diff: sky/engine/wtf/text/StringBufferTest.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/wtf/text/StringBuffer.h ('k') | sky/engine/wtf/text/StringBuilder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "config.h" 7 #include "sky/engine/config.h"
8 8
9 #include "wtf/text/StringBuffer.h" 9 #include "sky/engine/wtf/text/StringBuffer.h"
10 10
11 #include <gtest/gtest.h> 11 #include <gtest/gtest.h>
12 12
13 namespace { 13 namespace {
14 14
15 15
16 TEST(StringBuffer, Initial) 16 TEST(StringBuffer, Initial)
17 { 17 {
18 StringBuffer<LChar> buf1; 18 StringBuffer<LChar> buf1;
19 EXPECT_EQ(0u, buf1.length()); 19 EXPECT_EQ(0u, buf1.length());
(...skipping 17 matching lines...) Expand all
37 37
38 buf.shrink(1); 38 buf.shrink(1);
39 EXPECT_EQ(1u, buf.length()); 39 EXPECT_EQ(1u, buf.length());
40 EXPECT_EQ('a', buf[0]); 40 EXPECT_EQ('a', buf[0]);
41 41
42 buf.shrink(0); 42 buf.shrink(0);
43 EXPECT_EQ(0u, buf.length()); 43 EXPECT_EQ(0u, buf.length());
44 } 44 }
45 45
46 } // namespace 46 } // namespace
OLDNEW
« no previous file with comments | « sky/engine/wtf/text/StringBuffer.h ('k') | sky/engine/wtf/text/StringBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698