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

Side by Side Diff: content/public/test/mock_render_thread.h

Issue 10939010: Cleanup: avoid foo ? true : false, part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "content/public/renderer/render_thread.h" 10 #include "content/public/renderer/render_thread.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 void set_surface_id(int32 id) { 84 void set_surface_id(int32 id) {
85 surface_id_ = id; 85 surface_id_ = id;
86 } 86 }
87 87
88 int32 opener_id() const { 88 int32 opener_id() const {
89 return opener_id_; 89 return opener_id_;
90 } 90 }
91 91
92 bool has_widget() const { 92 bool has_widget() const {
93 return widget_ ? true : false; 93 return (widget_ != NULL);
94 } 94 }
95 95
96 void set_new_window_routing_id(int32 id) { 96 void set_new_window_routing_id(int32 id) {
97 new_window_routing_id_ = id; 97 new_window_routing_id_ = id;
98 } 98 }
99 99
100 // Simulates the Widget receiving a close message. This should result 100 // Simulates the Widget receiving a close message. This should result
101 // on releasing the internal reference counts and destroying the internal 101 // on releasing the internal reference counts and destroying the internal
102 // state. 102 // state.
103 void SendCloseMessage(); 103 void SendCloseMessage();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // The last known good deserializer for sync messages. 149 // The last known good deserializer for sync messages.
150 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 150 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
151 151
152 // A list of message filters added to this thread. 152 // A list of message filters added to this thread.
153 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; 153 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_;
154 }; 154 };
155 155
156 } // namespace content 156 } // namespace content
157 157
158 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 158 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/h264_parser.cc ('k') | content/shell/shell_web_contents_view_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698