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

Side by Side Diff: ui/base/ime/candidate_window_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/base/ime/candidate_window.h ('k') | ui/base/ime/chromeos/character_composer_unittest.cc » ('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 // 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
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
OLDNEW
« no previous file with comments | « ui/base/ime/candidate_window.h ('k') | ui/base/ime/chromeos/character_composer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698