Index: content/public/test/mock_render_thread.h |
diff --git a/content/public/test/mock_render_thread.h b/content/public/test/mock_render_thread.h |
index fd3f58af6886fe638b0dedb3a28eecfd1a8f394a..2f2e3640c9272791ee308e5d30e2174302af0024 100644 |
--- a/content/public/test/mock_render_thread.h |
+++ b/content/public/test/mock_render_thread.h |
@@ -100,6 +100,10 @@ class MockRenderThread : public RenderThread { |
new_window_routing_id_ = id; |
} |
+ void set_new_frame_routing_id(int32 id) { |
+ new_frame_routing_id_ = id; |
+ } |
+ |
// Simulates the Widget receiving a close message. This should result |
// on releasing the internal reference counts and destroying the internal |
// state. |
@@ -129,6 +133,13 @@ class MockRenderThread : public RenderThread { |
int* surface_id, |
int64* cloned_session_storage_namespace_id); |
+ // The Frame expects to be returned a valid route_id different from its own. |
+ void OnCreateChildFrame(int new_frame_routing_id, |
+ int64 parent_frame_id, |
+ int64 frame_id, |
+ const std::string& frame_name, |
+ int* new_render_frame_id); |
+ |
#if defined(OS_WIN) |
void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, |
base::SharedMemoryHandle* browser_handle); |
@@ -153,6 +164,7 @@ class MockRenderThread : public RenderThread { |
// Routing id that will be assigned to a CreateWindow Widget. |
int32 new_window_routing_id_; |
int32 new_window_main_frame_routing_id_; |
+ int32 new_frame_routing_id_; |
// The last known good deserializer for sync messages. |
scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; |