| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/string_tokenizer.h" | 5 #include "base/string_tokenizer.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 using std::string; | 8 using std::string; |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 class StringTokenizerTest : public testing::Test {}; | 11 class StringTokenizerTest : public testing::Test {}; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 t.set_quote_chars("'"); | 220 t.set_quote_chars("'"); |
| 221 | 221 |
| 222 EXPECT_TRUE(t.GetNext()); | 222 EXPECT_TRUE(t.GetNext()); |
| 223 EXPECT_EQ(string("foo='a, b'"), t.token()); | 223 EXPECT_EQ(string("foo='a, b'"), t.token()); |
| 224 | 224 |
| 225 EXPECT_TRUE(t.GetNext()); | 225 EXPECT_TRUE(t.GetNext()); |
| 226 EXPECT_EQ(string("bar"), t.token()); | 226 EXPECT_EQ(string("bar"), t.token()); |
| 227 | 227 |
| 228 EXPECT_FALSE(t.GetNext()); | 228 EXPECT_FALSE(t.GetNext()); |
| 229 } | 229 } |
| OLD | NEW |