OLD | NEW |
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 "sky/engine/config.h" | |
8 | 7 |
9 #include "sky/engine/wtf/text/StringBuffer.h" | 8 #include "sky/engine/wtf/text/StringBuffer.h" |
10 | 9 |
11 #include <gtest/gtest.h> | 10 #include <gtest/gtest.h> |
12 | 11 |
13 namespace { | 12 namespace { |
14 | 13 |
15 | 14 |
16 TEST(StringBuffer, Initial) | 15 TEST(StringBuffer, Initial) |
17 { | 16 { |
(...skipping 19 matching lines...) Expand all Loading... |
37 | 36 |
38 buf.shrink(1); | 37 buf.shrink(1); |
39 EXPECT_EQ(1u, buf.length()); | 38 EXPECT_EQ(1u, buf.length()); |
40 EXPECT_EQ('a', buf[0]); | 39 EXPECT_EQ('a', buf[0]); |
41 | 40 |
42 buf.shrink(0); | 41 buf.shrink(0); |
43 EXPECT_EQ(0u, buf.length()); | 42 EXPECT_EQ(0u, buf.length()); |
44 } | 43 } |
45 | 44 |
46 } // namespace | 45 } // namespace |
OLD | NEW |