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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 17 matching lines...) Expand all
28 class MockRenderThread : public RenderThread { 28 class MockRenderThread : public RenderThread {
29 public: 29 public:
30 MockRenderThread(); 30 MockRenderThread();
31 virtual ~MockRenderThread(); 31 virtual ~MockRenderThread();
32 32
33 // Provides access to the messages that have been received by this thread. 33 // Provides access to the messages that have been received by this thread.
34 IPC::TestSink& sink() { return sink_; } 34 IPC::TestSink& sink() { return sink_; }
35 35
36 // Helpers for embedders to know when content IPC messages are received, since 36 // Helpers for embedders to know when content IPC messages are received, since
37 // they don't have access to content IPC files. 37 // they don't have access to content IPC files.
38 void VerifyRunJavaScriptMessageSend(const string16& expected_alert_message); 38 void VerifyRunJavaScriptMessageSend(
39 const base::string16& expected_alert_message);
39 40
40 // RenderThread implementation: 41 // RenderThread implementation:
41 virtual bool Send(IPC::Message* msg) OVERRIDE; 42 virtual bool Send(IPC::Message* msg) OVERRIDE;
42 virtual base::MessageLoop* GetMessageLoop() OVERRIDE; 43 virtual base::MessageLoop* GetMessageLoop() OVERRIDE;
43 virtual IPC::SyncChannel* GetChannel() OVERRIDE; 44 virtual IPC::SyncChannel* GetChannel() OVERRIDE;
44 virtual std::string GetLocale() OVERRIDE; 45 virtual std::string GetLocale() OVERRIDE;
45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; 46 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE;
46 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() 47 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy()
47 OVERRIDE; 48 OVERRIDE;
48 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE; 49 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // A list of message filters added to this thread. 159 // A list of message filters added to this thread.
159 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; 160 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_;
160 161
161 // Observers to notify. 162 // Observers to notify.
162 ObserverList<RenderProcessObserver> observers_; 163 ObserverList<RenderProcessObserver> observers_;
163 }; 164 };
164 165
165 } // namespace content 166 } // namespace content
166 167
167 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698