| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #undef LOG | 5 #undef LOG |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 if (PathService::Get(base::FILE_EXE, &exe_path)) { | 665 if (PathService::Get(base::FILE_EXE, &exe_path)) { |
| 666 std::wstring exe_name = file_util::GetFilenameFromPath( | 666 std::wstring exe_name = file_util::GetFilenameFromPath( |
| 667 exe_path.ToWStringHack()); | 667 exe_path.ToWStringHack()); |
| 668 if (StartsWith(exe_name, L"test_shell_tests", false)) | 668 if (StartsWith(exe_name, L"test_shell_tests", false)) |
| 669 return true; | 669 return true; |
| 670 } | 670 } |
| 671 #endif // OS_WIN | 671 #endif // OS_WIN |
| 672 return false; | 672 return false; |
| 673 } | 673 } |
| 674 | 674 |
| 675 bool IsProtocolSupportedForMedia(const GURL& url) { |
| 676 if (url.SchemeIsFile() || url.SchemeIs("http") || url.SchemeIs("https")) |
| 677 return true; |
| 678 return false; |
| 679 } |
| 680 |
| 675 std::wstring GetWebKitLocale() { | 681 std::wstring GetWebKitLocale() { |
| 676 return L"en-US"; | 682 return L"en-US"; |
| 677 } | 683 } |
| 678 | 684 |
| 679 void CloseIdleConnections() { | 685 void CloseIdleConnections() { |
| 680 // Used in benchmarking, Ignored for test_shell. | 686 // Used in benchmarking, Ignored for test_shell. |
| 681 } | 687 } |
| 682 | 688 |
| 683 void SetCacheMode(bool enabled) { | 689 void SetCacheMode(bool enabled) { |
| 684 // Used in benchmarking, Ignored for test_shell. | 690 // Used in benchmarking, Ignored for test_shell. |
| 685 } | 691 } |
| 686 | 692 |
| 687 } // namespace webkit_glue | 693 } // namespace webkit_glue |
| OLD | NEW |