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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
8 #include "chrome/browser/extensions/api/page_capture/page_capture_api.h" | 8 #include "chrome/browser/extensions/api/page_capture/page_capture_api.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 FilePath temp_file_; | 53 FilePath temp_file_; |
54 }; | 54 }; |
55 | 55 |
56 IN_PROC_BROWSER_TEST_F(ExtensionPageCaptureApiTest, MAYBE_SaveAsMHTML) { | 56 IN_PROC_BROWSER_TEST_F(ExtensionPageCaptureApiTest, MAYBE_SaveAsMHTML) { |
57 PageCaptureSaveAsMHTMLDelegate delegate; | 57 PageCaptureSaveAsMHTMLDelegate delegate; |
58 ASSERT_TRUE(RunExtensionTest("page_capture")) << message_; | 58 ASSERT_TRUE(RunExtensionTest("page_capture")) << message_; |
59 ASSERT_FALSE(delegate.temp_file_.empty()); | 59 ASSERT_FALSE(delegate.temp_file_.empty()); |
60 // Flush the message loops to make sure the delete happens. | 60 // Flush the message loops to make sure the delete happens. |
61 ui_test_utils::RunAllPendingInMessageLoop(content::BrowserThread::FILE); | 61 content::RunAllPendingInMessageLoop(content::BrowserThread::FILE); |
62 ui_test_utils::RunAllPendingInMessageLoop(content::BrowserThread::IO); | 62 content::RunAllPendingInMessageLoop(content::BrowserThread::IO); |
63 ASSERT_FALSE(file_util::PathExists(delegate.temp_file_)); | 63 ASSERT_FALSE(file_util::PathExists(delegate.temp_file_)); |
64 } | 64 } |
OLD | NEW |