|
Refactor the render widget unittest so it can be reused to create a render view
unit test. Change the mock render thread to save all IPC messages it is asked to
send so that tests can verify that the correct ones were sent. There are some
new functions that support this checking.
Plumb the form state change notification through the render view so that we
will correctly update the form state to the browser.
Write two RenderView unit tests. One arbitrarily tests OnLoadAlternateHTMLText
which I used as a testcase for my testing framework. The other tests the above
form state change notification. I had to expose the timeout of this message
through the RenderView API so that the test can change it.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=7549
Total comments: 1
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+561 lines, -226 lines) |
Patch |
 |
M |
chrome/common/common.vcproj
|
View
|
1
3
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_message_utils.h
|
View
|
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/renderer/mock_render_process.h
|
View
|
1
2
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/mock_render_thread.h
|
View
|
1
2
3
|
1 chunk |
+116 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/mock_render_thread.cc
|
View
|
1
2
3
|
1 chunk |
+135 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_thread.h
|
View
|
3
|
3 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_thread.cc
|
View
|
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_view.h
|
View
|
1
3
|
6 chunks |
+21 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_view.cc
|
View
|
1
2
3
|
13 chunks |
+46 lines, -40 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/render_view_unittest.cc
|
View
|
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_widget_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+33 lines, -138 lines |
0 comments
|
Download
|
 |
M |
chrome/test/unit/unittests.vcproj
|
View
|
1
2
3
|
4 chunks |
+19 lines, -21 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/chrome_client_impl.h
|
View
|
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/chrome_client_impl.cc
|
View
|
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/chromium_bridge_impl.cc
|
View
|
3
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkit_glue.h
|
View
|
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|