| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/shell/renderer/test_runner/MockConstraints.h" | 5 #include "content/shell/renderer/test_runner/MockConstraints.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" | 7 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
| 8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
| 9 | 9 |
| 10 using namespace blink; | 10 using namespace blink; |
| 11 | 11 |
| 12 namespace WebTestRunner { | 12 namespace content { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 bool isSupported(const WebString& constraint) | 16 bool isSupported(const WebString& constraint) |
| 17 { | 17 { |
| 18 return constraint == "valid_and_supported_1" || constraint == "valid_and_sup
ported_2"; | 18 return constraint == "valid_and_supported_1" || constraint == "valid_and_sup
ported_2"; |
| 19 } | 19 } |
| 20 | 20 |
| 21 bool isValid(const WebString& constraint) | 21 bool isValid(const WebString& constraint) |
| 22 { | 22 { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 if (failedConstraint) | 49 if (failedConstraint) |
| 50 *failedConstraint = curr.m_name; | 50 *failedConstraint = curr.m_name; |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 return true; | 56 return true; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } | 59 } // namespace content |
| OLD | NEW |