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

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

Issue 680383008: Move ash/ime to ui/chromeos/ime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash48_global_command
Patch Set: 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 "ash/ime/candidate_view.h" 5 #include "ui/chromeos/ime/candidate_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/events/test/event_generator.h" 10 #include "ui/events/test/event_generator.h"
11 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/layout/box_layout.h" 12 #include "ui/views/layout/box_layout.h"
13 #include "ui/views/layout/fill_layout.h" 13 #include "ui/views/layout/fill_layout.h"
14 #include "ui/views/test/views_test_base.h" 14 #include "ui/views/test/views_test_base.h"
15 #include "ui/views/widget/widget_delegate.h" 15 #include "ui/views/widget/widget_delegate.h"
16 16
17 namespace ash { 17 namespace ui {
18 namespace ime { 18 namespace ime {
19 namespace { 19 namespace {
20 20
21 const char* const kDummyCandidates[] = { 21 const char* const kDummyCandidates[] = {
22 "candidate1", 22 "candidate1",
23 "candidate2", 23 "candidate2",
24 "candidate3", 24 "candidate3",
25 }; 25 };
26 26
27 } // namespace 27 } // namespace
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 event_generator()->MoveMouseTo( 172 event_generator()->MoveMouseTo(
173 GetCandidateAt(1)->GetBoundsInScreen().CenterPoint()); 173 GetCandidateAt(1)->GetBoundsInScreen().CenterPoint());
174 EXPECT_EQ(1, GetHighlightedIndex(&highlighted_count)); 174 EXPECT_EQ(1, GetHighlightedIndex(&highlighted_count));
175 EXPECT_EQ(1, highlighted_count); 175 EXPECT_EQ(1, highlighted_count);
176 176
177 event_generator()->ReleaseLeftButton(); 177 event_generator()->ReleaseLeftButton();
178 EXPECT_EQ(1, GetLastPressedIndexAndReset()); 178 EXPECT_EQ(1, GetLastPressedIndexAndReset());
179 } 179 }
180 180
181 } // namespace ime 181 } // namespace ime
182 } // namespace ash 182 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698