| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/ui_test_utils.h" | 5 #include "chrome/test/ui_test_utils.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 return new CommandLine(FilePath(FILE_PATH_LITERAL("python"))); | 724 return new CommandLine(FilePath(FILE_PATH_LITERAL("python"))); |
| 725 } | 725 } |
| 726 | 726 |
| 727 void TestWebSocketServer::SetPythonPath() { | 727 void TestWebSocketServer::SetPythonPath() { |
| 728 FilePath scripts_path; | 728 FilePath scripts_path; |
| 729 PathService::Get(base::DIR_SOURCE_ROOT, &scripts_path); | 729 PathService::Get(base::DIR_SOURCE_ROOT, &scripts_path); |
| 730 | 730 |
| 731 scripts_path = scripts_path | 731 scripts_path = scripts_path |
| 732 .Append(FILE_PATH_LITERAL("third_party")) | 732 .Append(FILE_PATH_LITERAL("third_party")) |
| 733 .Append(FILE_PATH_LITERAL("WebKit")) | 733 .Append(FILE_PATH_LITERAL("WebKit")) |
| 734 .Append(FILE_PATH_LITERAL("WebKitTools")) | 734 .Append(FILE_PATH_LITERAL("Tools")) |
| 735 .Append(FILE_PATH_LITERAL("Scripts")); | 735 .Append(FILE_PATH_LITERAL("Scripts")); |
| 736 AppendToPythonPath(scripts_path); | 736 AppendToPythonPath(scripts_path); |
| 737 } | 737 } |
| 738 | 738 |
| 739 CommandLine* TestWebSocketServer::CreateWebSocketServerCommandLine() { | 739 CommandLine* TestWebSocketServer::CreateWebSocketServerCommandLine() { |
| 740 FilePath src_path; | 740 FilePath src_path; |
| 741 // Get to 'src' dir. | 741 // Get to 'src' dir. |
| 742 PathService::Get(base::DIR_SOURCE_ROOT, &src_path); | 742 PathService::Get(base::DIR_SOURCE_ROOT, &src_path); |
| 743 | 743 |
| 744 FilePath script_path(src_path); | 744 FilePath script_path(src_path); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); | 912 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); |
| 913 } | 913 } |
| 914 | 914 |
| 915 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { | 915 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { |
| 916 DCHECK(bitmap); | 916 DCHECK(bitmap); |
| 917 SnapshotTaker taker; | 917 SnapshotTaker taker; |
| 918 return taker.TakeEntirePageSnapshot(rvh, bitmap); | 918 return taker.TakeEntirePageSnapshot(rvh, bitmap); |
| 919 } | 919 } |
| 920 | 920 |
| 921 } // namespace ui_test_utils | 921 } // namespace ui_test_utils |
| OLD | NEW |