OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 } | 766 } |
767 | 767 |
768 bool GetPluginFinderURL(std::string* plugin_finder_url) { | 768 bool GetPluginFinderURL(std::string* plugin_finder_url) { |
769 return false; | 769 return false; |
770 } | 770 } |
771 | 771 |
772 bool IsDefaultPluginEnabled() { | 772 bool IsDefaultPluginEnabled() { |
773 FilePath exe_path; | 773 FilePath exe_path; |
774 | 774 |
775 if (PathService::Get(base::FILE_EXE, &exe_path)) { | 775 if (PathService::Get(base::FILE_EXE, &exe_path)) { |
776 std::wstring exe_name = file_util::GetFilenameFromPath( | 776 std::wstring exe_name = exe_path.BaseName().ToWStringHack(); |
777 exe_path.ToWStringHack()); | |
778 if (StartsWith(exe_name, L"test_shell_tests", false)) | 777 if (StartsWith(exe_name, L"test_shell_tests", false)) |
779 return true; | 778 return true; |
780 } | 779 } |
781 return false; | 780 return false; |
782 } | 781 } |
783 | 782 |
784 bool IsProtocolSupportedForMedia(const GURL& url) { | 783 bool IsProtocolSupportedForMedia(const GURL& url) { |
785 if (url.SchemeIsFile() || | 784 if (url.SchemeIsFile() || |
786 url.SchemeIs("http") || | 785 url.SchemeIs("http") || |
787 url.SchemeIs("https") || | 786 url.SchemeIs("https") || |
(...skipping 16 matching lines...) Expand all Loading... |
804 | 803 |
805 void ClearCache() { | 804 void ClearCache() { |
806 // Used in benchmarking, Ignored for test_shell. | 805 // Used in benchmarking, Ignored for test_shell. |
807 } | 806 } |
808 | 807 |
809 std::string GetProductVersion() { | 808 std::string GetProductVersion() { |
810 return std::string("Chrome/0.0.0.0"); | 809 return std::string("Chrome/0.0.0.0"); |
811 } | 810 } |
812 | 811 |
813 } // namespace webkit_glue | 812 } // namespace webkit_glue |
OLD | NEW |