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

Unified Diff: content/shell/renderer/test_runner/WebUserMediaClientMock.cpp

Issue 295983008: test_runner: Migrate MockConstraint to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/WebUserMediaClientMock.cpp
diff --git a/content/shell/renderer/test_runner/WebUserMediaClientMock.cpp b/content/shell/renderer/test_runner/WebUserMediaClientMock.cpp
index 03d3abe44258996d0c71aa2e14d2f675f8f609c0..014c424e2ff0cffcb948f092745079d88822d635 100644
--- a/content/shell/renderer/test_runner/WebUserMediaClientMock.cpp
+++ b/content/shell/renderer/test_runner/WebUserMediaClientMock.cpp
@@ -5,8 +5,8 @@
#include "content/shell/renderer/test_runner/WebUserMediaClientMock.h"
#include "base/logging.h"
-#include "content/shell/renderer/test_runner/MockConstraints.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
+#include "content/shell/renderer/test_runner/mock_constraints.h"
#include "third_party/WebKit/public/platform/WebMediaConstraints.h"
#include "third_party/WebKit/public/platform/WebMediaDeviceInfo.h"
#include "third_party/WebKit/public/platform/WebMediaStream.h"
@@ -121,12 +121,12 @@ void WebUserMediaClientMock::requestUserMedia(const WebUserMediaRequest& streamR
WebMediaConstraints constraints = request.audioConstraints();
WebString failedConstraint;
- if (!constraints.isNull() && !MockConstraints::verifyConstraints(constraints, &failedConstraint)) {
+ if (!constraints.isNull() && !MockConstraints::VerifyConstraints(constraints, &failedConstraint)) {
m_delegate->postTask(new UserMediaRequestConstraintFailedTask(this, request, failedConstraint));
return;
}
constraints = request.videoConstraints();
- if (!constraints.isNull() && !MockConstraints::verifyConstraints(constraints, &failedConstraint)) {
+ if (!constraints.isNull() && !MockConstraints::VerifyConstraints(constraints, &failedConstraint)) {
m_delegate->postTask(new UserMediaRequestConstraintFailedTask(this, request, failedConstraint));
return;
}

Powered by Google App Engine
This is Rietveld 408576698