diff options
-rw-r--r-- | chrome_frame/test/net/fake_external_tab.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc index 81ef90c..a4f4ec7 100644 --- a/chrome_frame/test/net/fake_external_tab.cc +++ b/chrome_frame/test/net/fake_external_tab.cc @@ -44,6 +44,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" #include "chrome/renderer/chrome_content_renderer_client.h" +#include "chrome/test/base/ui_test_utils.h" #include "chrome/test/logging/win/file_logger.h" #include "chrome/test/logging/win/log_file_printer.h" #include "chrome/test/logging/win/test_log_collector.h" @@ -704,6 +705,11 @@ void CFUrlRequestUnittestRunner::StartInitializationTimeout() { void CFUrlRequestUnittestRunner::OnInitializationTimeout() { LOG(ERROR) << "Failed to start Chrome Frame in the host browser."; + + FilePath snapshot; + if (ui_test_utils::SaveScreenSnapshotToDesktop(&snapshot)) + LOG(ERROR) << "Screen snapshot saved to " << snapshot.value(); + StopFileLogger(true); if (launch_browser_) { |