Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: content/browser/cross_site_transfer_browsertest.cc

Issue 2108053005: Pull ChildProcessSecurityPolicyImpl out to shared subfolder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 5 #include <memory>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "content/browser/child_process_security_policy_impl.h"
14 #include "content/browser/loader/resource_dispatcher_host_impl.h" 13 #include "content/browser/loader/resource_dispatcher_host_impl.h"
14 #include "content/browser/shared/child_process_security_policy_helper.h"
15 #include "content/public/browser/navigation_entry.h" 15 #include "content/public/browser/navigation_entry.h"
16 #include "content/public/browser/render_process_host.h" 16 #include "content/public/browser/render_process_host.h"
17 #include "content/public/browser/resource_dispatcher_host_delegate.h" 17 #include "content/public/browser/resource_dispatcher_host_delegate.h"
18 #include "content/public/browser/resource_throttle.h" 18 #include "content/public/browser/resource_throttle.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/public/test/browser_test_utils.h" 20 #include "content/public/test/browser_test_utils.h"
21 #include "content/public/test/content_browser_test.h" 21 #include "content/public/test/content_browser_test.h"
22 #include "content/public/test/content_browser_test_utils.h" 22 #include "content/public/test/content_browser_test_utils.h"
23 #include "content/public/test/test_navigation_observer.h" 23 #include "content/public/test/test_navigation_observer.h"
24 #include "content/shell/browser/shell.h" 24 #include "content/shell/browser/shell.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 "document.getElementsByTagName('pre')[0].innerText);", 488 "document.getElementsByTagName('pre')[0].innerText);",
489 &actual_page_body)); 489 &actual_page_body));
490 EXPECT_THAT(actual_page_body, ::testing::HasSubstr(file_content)); 490 EXPECT_THAT(actual_page_body, ::testing::HasSubstr(file_content));
491 EXPECT_THAT(actual_page_body, 491 EXPECT_THAT(actual_page_body,
492 ::testing::HasSubstr(file_path.BaseName().AsUTF8Unsafe())); 492 ::testing::HasSubstr(file_path.BaseName().AsUTF8Unsafe()));
493 EXPECT_THAT(actual_page_body, 493 EXPECT_THAT(actual_page_body,
494 ::testing::HasSubstr("form-data; name=\"file\"")); 494 ::testing::HasSubstr("form-data; name=\"file\""));
495 } 495 }
496 496
497 } // namespace content 497 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/browser/devtools/protocol/dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698