OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/ui/ash/screenshot_taker.h" | 5 #include "chrome/browser/ui/ash/screenshot_taker.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 #if defined(OS_CHROMEOS) | 122 #if defined(OS_CHROMEOS) |
123 // Screenshot notifications on Windows not yet turned on. | 123 // Screenshot notifications on Windows not yet turned on. |
124 EXPECT_TRUE(g_browser_process->notification_ui_manager()->DoesIdExist( | 124 EXPECT_TRUE(g_browser_process->notification_ui_manager()->DoesIdExist( |
125 std::string("screenshot"))); | 125 std::string("screenshot"))); |
126 g_browser_process->notification_ui_manager()->CancelAll(); | 126 g_browser_process->notification_ui_manager()->CancelAll(); |
127 #endif | 127 #endif |
128 | 128 |
129 EXPECT_EQ(ScreenshotTakerObserver::SCREENSHOT_SUCCESS, screenshot_result_); | 129 EXPECT_EQ(ScreenshotTakerObserver::SCREENSHOT_SUCCESS, screenshot_result_); |
130 | 130 |
131 if (ScreenshotTakerObserver::SCREENSHOT_SUCCESS == screenshot_result_) | 131 if (ScreenshotTakerObserver::SCREENSHOT_SUCCESS == screenshot_result_) |
132 EXPECT_TRUE(file_util::PathExists(screenshot_path_)); | 132 EXPECT_TRUE(base::PathExists(screenshot_path_)); |
133 } | 133 } |
134 | 134 |
135 } // namespace test | 135 } // namespace test |
136 } // namespace ash | 136 } // namespace ash |
OLD | NEW |