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

Side by Side Diff: ui/chromeos/ime/candidate_window_view_unittest.cc

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed solution: move chromeos/ime to ui/base/ime/chromeos. Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/chromeos/ime/candidate_window_view.h" 5 #include "ui/chromeos/ime//candidate_window_view.h"
Jun Mukai 2014/11/20 08:25:07 same
Shu Chen 2014/11/20 08:34:39 Done.
Shu Chen 2014/11/20 08:34:39 Done.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/chromeos/ime/candidate_view.h" 12 #include "ui/chromeos/ime//candidate_view.h"
Jun Mukai 2014/11/20 08:25:07 same
Shu Chen 2014/11/20 08:34:39 Done.
Shu Chen 2014/11/20 08:34:39 Done.
13 #include "ui/views/test/views_test_base.h" 13 #include "ui/views/test/views_test_base.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 15
16 namespace ui { 16 namespace ui {
17 namespace ime { 17 namespace ime {
18 18
19 namespace { 19 namespace {
20 const char* kSampleCandidate[] = { 20 const char* kSampleCandidate[] = {
21 "Sample Candidate 1", 21 "Sample Candidate 1",
22 "Sample Candidate 2", 22 "Sample Candidate 2",
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // Check the selected index is invalidated. 379 // Check the selected index is invalidated.
380 EXPECT_EQ(-1, selected_candidate_index_in_page()); 380 EXPECT_EQ(-1, selected_candidate_index_in_page());
381 EXPECT_EQ(before_height, GetCandidateAt(0)->GetContentsBounds().height()); 381 EXPECT_EQ(before_height, GetCandidateAt(0)->GetContentsBounds().height());
382 // Checks all entry have same row height. 382 // Checks all entry have same row height.
383 for (size_t i = 1; i < GetCandidatesSize(); ++i) 383 for (size_t i = 1; i < GetCandidatesSize(); ++i)
384 EXPECT_EQ(before_height, GetCandidateAt(i)->GetContentsBounds().height()); 384 EXPECT_EQ(before_height, GetCandidateAt(i)->GetContentsBounds().height());
385 } 385 }
386 386
387 } // namespace ime 387 } // namespace ime
388 } // namespace ui 388 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698