| OLD | NEW |
| 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 // TODO(nona): Add more tests. | 4 // TODO(nona): Add more tests. |
| 5 | 5 |
| 6 #include "ui/base/ime/candidate_window.h" | 6 #include "ui/base/ime/candidate_window.h" |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/logging.h" | 14 #include "base/logging.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const size_t kSampleCandidateSize = 3; | 22 const size_t kSampleCandidateSize = 3; |
| 23 const char* kSampleCandidate[] = { | 23 const char* kSampleCandidate[] = { |
| 24 "Sample Candidate 1", | 24 "Sample Candidate 1", |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 std::vector<InfolistEntry> infolist_entries; | 255 std::vector<InfolistEntry> infolist_entries; |
| 256 bool has_highlighted = false; | 256 bool has_highlighted = false; |
| 257 | 257 |
| 258 candidate_window.GetInfolistEntries(&infolist_entries, &has_highlighted); | 258 candidate_window.GetInfolistEntries(&infolist_entries, &has_highlighted); |
| 259 | 259 |
| 260 EXPECT_TRUE(infolist_entries.empty()); | 260 EXPECT_TRUE(infolist_entries.empty()); |
| 261 EXPECT_FALSE(has_highlighted); | 261 EXPECT_FALSE(has_highlighted); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace ui | 264 } // namespace ui |
| OLD | NEW |