mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Deleting copy constructors for Scoped* classes.
Bug: webrtc:10365 Change-Id: Ia670b7b1ac72eb19f9e30228fd023601e2fb8a88 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128901 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27259}
This commit is contained in:
parent
0cd95081c0
commit
9debe5aee4
5 changed files with 10 additions and 1 deletions
|
@ -313,7 +313,7 @@ TEST_F(ProbeControllerTest, TestAllocatedBitrateCap) {
|
|||
}
|
||||
|
||||
TEST_F(ProbeControllerTest, ConfigurableProbingFieldTrial) {
|
||||
auto trials = test::ScopedFieldTrials(
|
||||
test::ScopedFieldTrials trials(
|
||||
"WebRTC-Bwe-ConfigurableProbing/"
|
||||
"p1:2,p2:5,step_size:3,further_probe_threshold:0.8/");
|
||||
probe_controller_.reset(
|
||||
|
|
|
@ -54,6 +54,8 @@ class FakeClock : public ClockInterface {
|
|||
class ScopedFakeClock : public FakeClock {
|
||||
public:
|
||||
ScopedFakeClock();
|
||||
ScopedFakeClock(const ScopedFakeClock&) = delete;
|
||||
ScopedFakeClock& operator=(const ScopedFakeClock&) = delete;
|
||||
~ScopedFakeClock() override;
|
||||
|
||||
private:
|
||||
|
|
|
@ -22,6 +22,8 @@ class YieldInterface {
|
|||
class ScopedYieldPolicy final {
|
||||
public:
|
||||
explicit ScopedYieldPolicy(YieldInterface* policy);
|
||||
ScopedYieldPolicy(const ScopedYieldPolicy&) = delete;
|
||||
ScopedYieldPolicy& operator=(const ScopedYieldPolicy&) = delete;
|
||||
~ScopedYieldPolicy();
|
||||
// Will yield as specified by the currently active thread-local yield policy
|
||||
// (which by default is a no-op).
|
||||
|
|
|
@ -160,6 +160,9 @@ class RTC_LOCKABLE Thread : public MessageQueue {
|
|||
class ScopedDisallowBlockingCalls {
|
||||
public:
|
||||
ScopedDisallowBlockingCalls();
|
||||
ScopedDisallowBlockingCalls(const ScopedDisallowBlockingCalls&) = delete;
|
||||
ScopedDisallowBlockingCalls& operator=(const ScopedDisallowBlockingCalls&) =
|
||||
delete;
|
||||
~ScopedDisallowBlockingCalls();
|
||||
|
||||
private:
|
||||
|
|
|
@ -37,6 +37,8 @@ void ValidateFieldTrialsStringOrDie(const std::string& config);
|
|||
class ScopedFieldTrials {
|
||||
public:
|
||||
explicit ScopedFieldTrials(const std::string& config);
|
||||
ScopedFieldTrials(const ScopedFieldTrials&) = delete;
|
||||
ScopedFieldTrials& operator=(const ScopedFieldTrials&) = delete;
|
||||
~ScopedFieldTrials();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue