OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/layout_test/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_test_runner.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <clocale> | 10 #include <clocale> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 const char kGenPrefix[] = "file:///gen/"; | 367 const char kGenPrefix[] = "file:///gen/"; |
368 const int kGenPrefixLen = arraysize(kGenPrefix) - 1; | 368 const int kGenPrefixLen = arraysize(kGenPrefix) - 1; |
369 | 369 |
370 // Map "file:///gen/" to "file://<build directory>/gen/". | 370 // Map "file:///gen/" to "file://<build directory>/gen/". |
371 if (!utf8_url.compare(0, kGenPrefixLen, kGenPrefix, kGenPrefixLen)) { | 371 if (!utf8_url.compare(0, kGenPrefixLen, kGenPrefix, kGenPrefixLen)) { |
372 base::FilePath gen_directory_path = | 372 base::FilePath gen_directory_path = |
373 test_config_->build_directory.Append(FILE_PATH_LITERAL("gen/")); | 373 test_config_->build_directory.Append(FILE_PATH_LITERAL("gen/")); |
374 std::string new_url = std::string("file://") + | 374 std::string new_url = std::string("file://") + |
375 gen_directory_path.AsUTF8Unsafe() + | 375 gen_directory_path.AsUTF8Unsafe() + |
376 utf8_url.substr(kGenPrefixLen); | 376 utf8_url.substr(kGenPrefixLen); |
| 377 DLOG(WARNING) << "From Gen:"; |
| 378 DLOG(WARNING) << WebURL(GURL(new_url)); |
377 return WebURL(GURL(new_url)); | 379 return WebURL(GURL(new_url)); |
378 } | 380 } |
379 | 381 |
380 const char kPrefix[] = "file:///tmp/LayoutTests/"; | 382 const char kPrefix[] = "file:///tmp/LayoutTests/"; |
381 const int kPrefixLen = arraysize(kPrefix) - 1; | 383 const int kPrefixLen = arraysize(kPrefix) - 1; |
382 | 384 |
383 if (utf8_url.compare(0, kPrefixLen, kPrefix, kPrefixLen)) | 385 if (utf8_url.compare(0, kPrefixLen, kPrefix, kPrefixLen)) |
384 return WebURL(GURL(utf8_url)); | 386 return WebURL(GURL(utf8_url)); |
385 | 387 |
386 base::FilePath replace_path = | 388 base::FilePath replace_path = |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 void BlinkTestRunner::ReportLeakDetectionResult( | 1059 void BlinkTestRunner::ReportLeakDetectionResult( |
1058 const LeakDetectionResult& report) { | 1060 const LeakDetectionResult& report) { |
1059 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1060 } | 1062 } |
1061 | 1063 |
1062 void BlinkTestRunner::OnDestruct() { | 1064 void BlinkTestRunner::OnDestruct() { |
1063 delete this; | 1065 delete this; |
1064 } | 1066 } |
1065 | 1067 |
1066 } // namespace content | 1068 } // namespace content |
OLD | NEW |