OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/strings/stringprintf.h" | |
8 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
11 #include "chrome/browser/ui/singleton_tabs.h" | 10 #include "chrome/browser/ui/singleton_tabs.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "chrome/common/extensions/extension_process_policy.h" | 12 #include "chrome/common/extensions/extension_process_policy.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
16 #include "content/common/fileapi/webblob_messages.h" | 15 #include "content/common/fileapi/webblob_messages.h" |
17 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // in |rfh->GetProcess()|. | 108 // in |rfh->GetProcess()|. |
110 content::RenderProcessHostWatcher crash_observer( | 109 content::RenderProcessHostWatcher crash_observer( |
111 rfh->GetProcess(), | 110 rfh->GetProcess(), |
112 content::RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT); | 111 content::RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT); |
113 IPC::IpcSecurityTestUtil::PwnMessageReceived( | 112 IPC::IpcSecurityTestUtil::PwnMessageReceived( |
114 rfh->GetProcess()->GetChannel(), | 113 rfh->GetProcess()->GetChannel(), |
115 BlobHostMsg_RegisterPublicURL( | 114 BlobHostMsg_RegisterPublicURL( |
116 GURL("blob:" + target_origin + "/" + blob_path), blob_id)); | 115 GURL("blob:" + target_origin + "/" + blob_path), blob_id)); |
117 crash_observer.Wait(); // If the process is killed, this test passes. | 116 crash_observer.Wait(); // If the process is killed, this test passes. |
118 } | 117 } |
OLD | NEW |