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 "chrome/test/base/ui_test_utils.h" | 5 #include "chrome/test/base/ui_test_utils.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 142 } |
143 | 143 |
144 bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path) { | 144 bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path) { |
145 FilePath desktop; | 145 FilePath desktop; |
146 | 146 |
147 return PathService::Get(chrome::DIR_USER_DESKTOP, &desktop) && | 147 return PathService::Get(chrome::DIR_USER_DESKTOP, &desktop) && |
148 SaveScreenSnapshotToDirectory(desktop, screenshot_path); | 148 SaveScreenSnapshotToDirectory(desktop, screenshot_path); |
149 } | 149 } |
150 | 150 |
151 } // namespace ui_test_utils | 151 } // namespace ui_test_utils |
OLD | NEW |