OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 "base/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
| 6 #include "chrome/common/render_messages.h" |
6 #include "chrome/renderer/mock_render_process.h" | 7 #include "chrome/renderer/mock_render_process.h" |
7 #include "chrome/renderer/mock_render_thread.h" | 8 #include "chrome/renderer/mock_render_thread.h" |
8 #include "chrome/renderer/render_view.h" | 9 #include "chrome/renderer/render_view.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "webkit/glue/webframe.h" | 11 #include "webkit/glue/webframe.h" |
11 #include "webkit/glue/weburlrequest.h" | 12 #include "webkit/glue/weburlrequest.h" |
12 #include "webkit/glue/webview.h" | 13 #include "webkit/glue/webview.h" |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 ViewHostMsg_UpdateState::ID)); | 123 ViewHostMsg_UpdateState::ID)); |
123 render_thread_.sink().ClearMessages(); | 124 render_thread_.sink().ClearMessages(); |
124 | 125 |
125 // Change the value of the input. We should have gotten an update state | 126 // Change the value of the input. We should have gotten an update state |
126 // notification. We need to spin the message loop to catch this update. | 127 // notification. We need to spin the message loop to catch this update. |
127 ExecuteJavaScript("document.getElementById('elt_text').value = 'foo';"); | 128 ExecuteJavaScript("document.getElementById('elt_text').value = 'foo';"); |
128 ProcessPendingMessages(); | 129 ProcessPendingMessages(); |
129 EXPECT_TRUE(render_thread_.sink().GetUniqueMessageMatching( | 130 EXPECT_TRUE(render_thread_.sink().GetUniqueMessageMatching( |
130 ViewHostMsg_UpdateState::ID)); | 131 ViewHostMsg_UpdateState::ID)); |
131 } | 132 } |
OLD | NEW |