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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl_browsertest.cc

Issue 2478583005: Browser tests for starting a drag-and-drop out of an OOPIF. (Closed)
Patch Set: Integrate the test with the nested drag-and-drop message loop. Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/browser/frame_host/navigation_controller_impl.h" 5 #include "content/browser/frame_host/navigation_controller_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "content/public/common/renderer_preferences.h" 42 #include "content/public/common/renderer_preferences.h"
43 #include "content/public/common/url_constants.h" 43 #include "content/public/common/url_constants.h"
44 #include "content/public/test/browser_test_utils.h" 44 #include "content/public/test/browser_test_utils.h"
45 #include "content/public/test/content_browser_test.h" 45 #include "content/public/test/content_browser_test.h"
46 #include "content/public/test/content_browser_test_utils.h" 46 #include "content/public/test/content_browser_test_utils.h"
47 #include "content/public/test/test_navigation_observer.h" 47 #include "content/public/test/test_navigation_observer.h"
48 #include "content/public/test/test_utils.h" 48 #include "content/public/test/test_utils.h"
49 #include "content/shell/browser/shell.h" 49 #include "content/shell/browser/shell.h"
50 #include "content/shell/common/shell_switches.h" 50 #include "content/shell/common/shell_switches.h"
51 #include "content/test/content_browser_test_utils_internal.h" 51 #include "content/test/content_browser_test_utils_internal.h"
52 #include "content/test/test_frame_navigation_observer.h"
53 #include "net/dns/mock_host_resolver.h" 52 #include "net/dns/mock_host_resolver.h"
54 #include "net/test/embedded_test_server/embedded_test_server.h" 53 #include "net/test/embedded_test_server/embedded_test_server.h"
55 #include "net/test/embedded_test_server/http_request.h" 54 #include "net/test/embedded_test_server/http_request.h"
56 #include "net/test/url_request/url_request_failed_job.h" 55 #include "net/test/url_request/url_request_failed_job.h"
57 #include "testing/gmock/include/gmock/gmock-matchers.h" 56 #include "testing/gmock/include/gmock/gmock-matchers.h"
58 57
59 namespace { 58 namespace {
60 59
61 static std::string kAddNamedFrameScript = 60 static std::string kAddNamedFrameScript =
62 "var f = document.createElement('iframe');" 61 "var f = document.createElement('iframe');"
(...skipping 6844 matching lines...) Expand 10 before | Expand all | Expand 10 after
6907 // Verify that the extra header was NOT present for the subresource. 6906 // Verify that the extra header was NOT present for the subresource.
6908 const net::test_server::HttpRequest* image_request = 6907 const net::test_server::HttpRequest* image_request =
6909 FindAccumulatedRequest(image_url); 6908 FindAccumulatedRequest(image_url);
6910 ASSERT_TRUE(image_request); 6909 ASSERT_TRUE(image_request);
6911 EXPECT_THAT(image_request->headers, 6910 EXPECT_THAT(image_request->headers,
6912 testing::Not(testing::Contains( 6911 testing::Not(testing::Contains(
6913 testing::Key("X-ExtraHeadersVsSubresources")))); 6912 testing::Key("X-ExtraHeadersVsSubresources"))));
6914 } 6913 }
6915 6914
6916 } // namespace content 6915 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698