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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h

Issue 2645983003: Make hbos per-file OWNER of *webrtc*browsertest* in chrome/browser/media/webrtc. (Closed)
Patch Set: RTCPeerConnection using FRIEND_TEST_ALL_PREFIXES Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void Resume() override; 204 void Resume() override;
205 void ContextDestroyed(ExecutionContext*) override; 205 void ContextDestroyed(ExecutionContext*) override;
206 206
207 // ScriptWrappable 207 // ScriptWrappable
208 // We keep the this object alive until either stopped or closed. 208 // We keep the this object alive until either stopped or closed.
209 bool HasPendingActivity() const final { return !closed_ && !stopped_; } 209 bool HasPendingActivity() const final { return !closed_ && !stopped_; }
210 210
211 DECLARE_VIRTUAL_TRACE(); 211 DECLARE_VIRTUAL_TRACE();
212 212
213 private: 213 private:
214 friend class RTCPeerConnectionTest; 214 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest, GetAudioTrack);
215 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest, GetVideoTrack);
216 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest, GetAudioAndVideoTrack);
217 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest, GetTrackRemoveStreamAndGCAll);
218 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest,
219 GetTrackRemoveStreamAndGCWithPersistentComponent);
220 FRIEND_TEST_ALL_PREFIXES(RTCPeerConnectionTest,
221 GetTrackRemoveStreamAndGCWithPersistentStream);
215 222
216 typedef Function<bool()> BoolFunction; 223 typedef Function<bool()> BoolFunction;
217 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> { 224 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> {
218 public: 225 public:
219 EventWrapper(Event*, std::unique_ptr<BoolFunction>); 226 EventWrapper(Event*, std::unique_ptr<BoolFunction>);
220 // Returns true if |m_setupFunction| returns true or it is null. 227 // Returns true if |m_setupFunction| returns true or it is null.
221 // |m_event| will only be fired if setup() returns true; 228 // |m_event| will only be fired if setup() returns true;
222 bool Setup(); 229 bool Setup();
223 230
224 DECLARE_TRACE(); 231 DECLARE_TRACE();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 295
289 bool stopped_; 296 bool stopped_;
290 bool closed_; 297 bool closed_;
291 298
292 bool has_data_channels_; // For RAPPOR metrics 299 bool has_data_channels_; // For RAPPOR metrics
293 }; 300 };
294 301
295 } // namespace blink 302 } // namespace blink
296 303
297 #endif // RTCPeerConnection_h 304 #endif // RTCPeerConnection_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698