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

Side by Side Diff: content/test/webrtc_audio_device_test.h

Issue 10449094: Fix client-side phishing detection test flakiness and ChromeOS failure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore the previous sandbox-enabled state Created 8 years, 6 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_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 5 #ifndef CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Initialized on the main test thread that we mark as the UI thread. 181 // Initialized on the main test thread that we mark as the UI thread.
182 scoped_ptr<content::TestBrowserThread> ui_thread_; 182 scoped_ptr<content::TestBrowserThread> ui_thread_;
183 // Initialized on our IO thread to satisfy BrowserThread::IO checks. 183 // Initialized on our IO thread to satisfy BrowserThread::IO checks.
184 scoped_ptr<content::TestBrowserThread> io_thread_; 184 scoped_ptr<content::TestBrowserThread> io_thread_;
185 // COM initialization on the IO thread for Windows. 185 // COM initialization on the IO thread for Windows.
186 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; 186 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_;
187 187
188 // These are initialized when we set up our IO thread. 188 // These are initialized when we set up our IO thread.
189 bool has_input_devices_; 189 bool has_input_devices_;
190 bool has_output_devices_; 190 bool has_output_devices_;
191
192 // The previous state for whether sandbox support was enabled in
193 // RenderViewWebKitPlatformSupportImpl.
194 bool sandbox_was_enabled_;
191 }; 195 };
192 196
193 // A very basic implementation of webrtc::Transport that acts as a transport 197 // A very basic implementation of webrtc::Transport that acts as a transport
194 // but just forwards all calls to a local webrtc::VoENetwork implementation. 198 // but just forwards all calls to a local webrtc::VoENetwork implementation.
195 // Ownership of the VoENetwork object lies outside the class. 199 // Ownership of the VoENetwork object lies outside the class.
196 class WebRTCTransportImpl : public webrtc::Transport { 200 class WebRTCTransportImpl : public webrtc::Transport {
197 public: 201 public:
198 explicit WebRTCTransportImpl(webrtc::VoENetwork* network); 202 explicit WebRTCTransportImpl(webrtc::VoENetwork* network);
199 virtual ~WebRTCTransportImpl(); 203 virtual ~WebRTCTransportImpl();
200 204
201 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; 205 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE;
202 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; 206 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE;
203 207
204 private: 208 private:
205 webrtc::VoENetwork* network_; 209 webrtc::VoENetwork* network_;
206 }; 210 };
207 211
208 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 212 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
OLDNEW
« no previous file with comments | « content/test/render_view_fake_resources_test.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698