| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/app_list/search/tokenized_string.h" | 5 #include "ui/app_list/search/tokenized_string.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace app_list { | 10 namespace app_list { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 base::string16 GetContent(const TokenizedString& tokenized) { | 15 base::string16 GetContent(const TokenizedString& tokenized) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 { | 80 { |
| 81 base::string16 text(base::UTF8ToUTF16("!@#$%^&*()<<<**>>>")); | 81 base::string16 text(base::UTF8ToUTF16("!@#$%^&*()<<<**>>>")); |
| 82 TokenizedString tokens(text); | 82 TokenizedString tokens(text); |
| 83 EXPECT_EQ(base::UTF8ToUTF16(""), | 83 EXPECT_EQ(base::UTF8ToUTF16(""), |
| 84 GetContent(tokens)); | 84 GetContent(tokens)); |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace test | 88 } // namespace test |
| 89 } // namespace app_list | 89 } // namespace app_list |
| OLD | NEW |