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/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 "You need to add this solution to your .gclient to run this test:\n" | 33 "You need to add this solution to your .gclient to run this test:\n" |
34 "{\n" | 34 "{\n" |
35 " \"name\" : \"webrtc.DEPS\",\n" | 35 " \"name\" : \"webrtc.DEPS\",\n" |
36 " \"url\" : \"https://chromium.googlesource.com/chromium/deps/" | 36 " \"url\" : \"https://chromium.googlesource.com/chromium/deps/" |
37 "webrtc/webrtc.DEPS\",\n" | 37 "webrtc/webrtc.DEPS\",\n" |
38 "}"; | 38 "}"; |
39 | 39 |
40 const int kDefaultPollIntervalMsec = 250; | 40 const int kDefaultPollIntervalMsec = 250; |
41 | 41 |
42 bool IsErrorResult(const std::string& result) { | 42 bool IsErrorResult(const std::string& result) { |
43 return base::StartsWithASCII(result, "failed-", false); | 43 return base::StartsWith(result, "failed-", |
| 44 base::CompareCase::INSENSITIVE_ASCII); |
44 } | 45 } |
45 | 46 |
46 base::FilePath GetReferenceFilesDir() { | 47 base::FilePath GetReferenceFilesDir() { |
47 base::FilePath test_data_dir; | 48 base::FilePath test_data_dir; |
48 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); | 49 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); |
49 | 50 |
50 return test_data_dir.Append(kReferenceFilesDirName); | 51 return test_data_dir.Append(kReferenceFilesDirName); |
51 } | 52 } |
52 | 53 |
53 base::FilePath GetToolForPlatform(const std::string& tool_name) { | 54 base::FilePath GetToolForPlatform(const std::string& tool_name) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 154 } |
154 } | 155 } |
155 LOG(ERROR) | 156 LOG(ERROR) |
156 << "Timed out while waiting for " << javascript | 157 << "Timed out while waiting for " << javascript |
157 << " to evaluate to " << evaluates_to << "; last result was '" << result | 158 << " to evaluate to " << evaluates_to << "; last result was '" << result |
158 << "'"; | 159 << "'"; |
159 return false; | 160 return false; |
160 } | 161 } |
161 | 162 |
162 } // namespace test | 163 } // namespace test |
OLD | NEW |