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

Side by Side Diff: ash/ime/candidate_window_view_unittest.cc

Issue 680153002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting 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
« no previous file with comments | « ash/ime/candidate_window_view.cc ('k') | ash/ime/infolist_window.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 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_window_view.h" 5 #include "ash/ime/candidate_window_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/ime/candidate_view.h" 9 #include "ash/ime/candidate_view.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 "%lld", static_cast<unsigned long long>(i))); 58 "%lld", static_cast<unsigned long long>(i)));
59 candidate_window->mutable_candidates()->push_back(entry); 59 candidate_window->mutable_candidates()->push_back(entry);
60 } 60 }
61 } 61 }
62 62
63 } // namespace 63 } // namespace
64 64
65 class CandidateWindowViewTest : public views::ViewsTestBase { 65 class CandidateWindowViewTest : public views::ViewsTestBase {
66 public: 66 public:
67 CandidateWindowViewTest() {} 67 CandidateWindowViewTest() {}
68 virtual ~CandidateWindowViewTest() {} 68 ~CandidateWindowViewTest() override {}
69 69
70 protected: 70 protected:
71 virtual void SetUp() { 71 void SetUp() override {
72 views::ViewsTestBase::SetUp(); 72 views::ViewsTestBase::SetUp();
73 candidate_window_view_ = new CandidateWindowView(GetContext()); 73 candidate_window_view_ = new CandidateWindowView(GetContext());
74 candidate_window_view_->InitWidget(); 74 candidate_window_view_->InitWidget();
75 } 75 }
76 76
77 CandidateWindowView* candidate_window_view() { 77 CandidateWindowView* candidate_window_view() {
78 return candidate_window_view_; 78 return candidate_window_view_;
79 } 79 }
80 80
81 int selected_candidate_index_in_page() { 81 int selected_candidate_index_in_page() {
(...skipping 297 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 ash 388 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ime/candidate_window_view.cc ('k') | ash/ime/infolist_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698