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

Side by Side Diff: ui/views/test/views_test_helper.cc

Issue 2119813002: views::Textfield: Implement yank editing command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 5 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
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/views/controls/textfield/textfield_model.h"
5 #include "ui/views/test/views_test_helper.h" 6 #include "ui/views/test/views_test_helper.h"
6 7
7 namespace views { 8 namespace views {
8 9
9 ViewsTestHelper::ViewsTestHelper() { 10 ViewsTestHelper::ViewsTestHelper() {
10 } 11 }
11 12
12 ViewsTestHelper::~ViewsTestHelper() { 13 ViewsTestHelper::~ViewsTestHelper() {
14 // Clear kill buffer used for "Yank" text editing command so that no state
15 // persists between tests.
16 TextfieldModel::ClearKillBufferForTesting();
msw 2016/07/22 17:44:03 Would it be sufficient to clear this in Textfield[
karandeepb 2016/07/25 06:38:11 Done.
13 } 17 }
14 18
15 void ViewsTestHelper::SetUp() { 19 void ViewsTestHelper::SetUp() {
16 } 20 }
17 21
18 void ViewsTestHelper::TearDown() { 22 void ViewsTestHelper::TearDown() {
19 } 23 }
20 24
21 gfx::NativeWindow ViewsTestHelper::GetContext() { 25 gfx::NativeWindow ViewsTestHelper::GetContext() {
22 return NULL; 26 return NULL;
23 } 27 }
24 28
25 } // namespace views 29 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698