| 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 "chrome/browser/media/webrtc_browsertest_common.h" | 5 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 FILE_PATH_LITERAL("reference_video_1280x720_30fps"); | 25 FILE_PATH_LITERAL("reference_video_1280x720_30fps"); |
| 26 const base::FilePath::CharType kYuvFileExtension[] = FILE_PATH_LITERAL("yuv"); | 26 const base::FilePath::CharType kYuvFileExtension[] = FILE_PATH_LITERAL("yuv"); |
| 27 const base::FilePath::CharType kY4mFileExtension[] = FILE_PATH_LITERAL("y4m"); | 27 const base::FilePath::CharType kY4mFileExtension[] = FILE_PATH_LITERAL("y4m"); |
| 28 | 28 |
| 29 // This message describes how to modify your .gclient to get the reference | 29 // This message describes how to modify your .gclient to get the reference |
| 30 // video files downloaded for you. | 30 // video files downloaded for you. |
| 31 static const char kAdviseOnGclientSolution[] = | 31 static const char kAdviseOnGclientSolution[] = |
| 32 "You need to add this solution to your .gclient to run this test:\n" | 32 "You need to add this solution to your .gclient to run this test:\n" |
| 33 "{\n" | 33 "{\n" |
| 34 " \"name\" : \"webrtc.DEPS\",\n" | 34 " \"name\" : \"webrtc.DEPS\",\n" |
| 35 " \"url\" : \"svn://svn.chromium.org/chrome/trunk/deps/" | 35 " \"url\" : \"https://chromium.googlesource.com/chromium/deps/" |
| 36 "third_party/webrtc/webrtc.DEPS\",\n" | 36 "webrtc/webrtc.DEPS\",\n" |
| 37 "}"; | 37 "}"; |
| 38 | 38 |
| 39 const int kDefaultPollIntervalMsec = 250; | 39 const int kDefaultPollIntervalMsec = 250; |
| 40 | 40 |
| 41 base::FilePath GetReferenceFilesDir() { | 41 base::FilePath GetReferenceFilesDir() { |
| 42 base::FilePath test_data_dir; | 42 base::FilePath test_data_dir; |
| 43 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); | 43 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); |
| 44 | 44 |
| 45 return test_data_dir.Append(kReferenceFilesDirName); | 45 return test_data_dir.Append(kReferenceFilesDirName); |
| 46 } | 46 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 LOG(ERROR) | 146 LOG(ERROR) |
| 147 << "Timed out while waiting for " << javascript | 147 << "Timed out while waiting for " << javascript |
| 148 << " to evaluate to " << evaluates_to << "; last result was '" << result | 148 << " to evaluate to " << evaluates_to << "; last result was '" << result |
| 149 << "'"; | 149 << "'"; |
| 150 return false; | 150 return false; |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace test | 153 } // namespace test |
| OLD | NEW |