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

Side by Side Diff: chrome/renderer/render_view_unittest.cc

Issue 20072: Finish taking out render_messages.h include from other headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698