Chromium Code Reviews| 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 | 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 |
| OLD | NEW |