OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/waitable_event.h" | |
6 #include "chrome/common/render_messages.h" | 5 #include "chrome/common/render_messages.h" |
7 #include "chrome/renderer/mock_render_process.h" | 6 #include "chrome/renderer/mock_render_process.h" |
8 #include "chrome/renderer/render_thread.h" | 7 #include "chrome/renderer/render_thread.h" |
9 #include "ipc/ipc_sync_channel.h" | 8 #include "ipc/ipc_sync_channel.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 namespace { | 11 namespace { |
13 | 12 |
14 const char kThreadName[] = "render_thread_unittest"; | 13 const char kThreadName[] = "render_thread_unittest"; |
15 | 14 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Message goes nowhere, but this confirms Init() has happened. | 54 // Message goes nowhere, but this confirms Init() has happened. |
56 // Unusually (?), RenderThread() Start()s itself in it's constructor. | 55 // Unusually (?), RenderThread() Start()s itself in it's constructor. |
57 mock_process_->main_thread()->Send(msg); | 56 mock_process_->main_thread()->Send(msg); |
58 | 57 |
59 // No need to delete msg; per Message::Send() documentation, "The | 58 // No need to delete msg; per Message::Send() documentation, "The |
60 // implementor takes ownership of the given Message regardless of | 59 // implementor takes ownership of the given Message regardless of |
61 // whether or not this method succeeds." | 60 // whether or not this method succeeds." |
62 } | 61 } |
63 | 62 |
64 } // namespace | 63 } // namespace |
OLD | NEW |