| 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 "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 Loading... |
| 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 |
| OLD | NEW |