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

Side by Side Diff: ui/app_list/search/term_break_iterator_unittest.cc

Issue 522683003: Move basic string operations to ui/app_list/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 3 months 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 | « ui/app_list/search/term_break_iterator.cc ('k') | ui/app_list/search/tokenized_string.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 // 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/term_break_iterator.h" 5 #include "ui/app_list/search/term_break_iterator.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 using base::UTF8ToUTF16; 10 using base::UTF8ToUTF16;
11 11
12 namespace app_list { 12 namespace app_list {
13 namespace test { 13 namespace test {
14 14
15 TEST(TermBreakIteratorTest, EmptyWord) { 15 TEST(TermBreakIteratorTest, EmptyWord) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 EXPECT_EQ(UTF8ToUTF16("English"), iter.GetCurrentTerm()); 80 EXPECT_EQ(UTF8ToUTF16("English"), iter.GetCurrentTerm());
81 EXPECT_TRUE(iter.Advance()); 81 EXPECT_TRUE(iter.Advance());
82 EXPECT_EQ(UTF8ToUTF16("\xe4\xb8\xad\xe6\x96\x87"), iter.GetCurrentTerm()); 82 EXPECT_EQ(UTF8ToUTF16("\xe4\xb8\xad\xe6\x96\x87"), iter.GetCurrentTerm());
83 EXPECT_TRUE(iter.Advance()); 83 EXPECT_TRUE(iter.Advance());
84 EXPECT_EQ(UTF8ToUTF16("Word"), iter.GetCurrentTerm()); 84 EXPECT_EQ(UTF8ToUTF16("Word"), iter.GetCurrentTerm());
85 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. 85 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end.
86 } 86 }
87 87
88 } // namespace test 88 } // namespace test
89 } // namespace app_list 89 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/search/term_break_iterator.cc ('k') | ui/app_list/search/tokenized_string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698