| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/public/common/content_constants.h" | 42 #include "content/public/common/content_constants.h" |
| 43 #include "content/public/common/url_constants.h" | 43 #include "content/public/common/url_constants.h" |
| 44 #include "content/public/test/mock_render_process_host.h" | 44 #include "content/public/test/mock_render_process_host.h" |
| 45 #include "content/public/test/test_browser_context.h" | 45 #include "content/public/test/test_browser_context.h" |
| 46 #include "content/public/test/test_utils.h" | 46 #include "content/public/test/test_utils.h" |
| 47 #include "content/test/test_content_browser_client.h" | 47 #include "content/test/test_content_browser_client.h" |
| 48 #include "content/test/test_content_client.h" | 48 #include "content/test/test_content_client.h" |
| 49 #include "content/test/test_render_frame_host.h" | 49 #include "content/test/test_render_frame_host.h" |
| 50 #include "content/test/test_render_view_host.h" | 50 #include "content/test/test_render_view_host.h" |
| 51 #include "content/test/test_web_contents.h" | 51 #include "content/test/test_web_contents.h" |
| 52 #include "net/base/test_data_directory.h" | |
| 53 #include "net/test/cert_test_util.h" | 52 #include "net/test/cert_test_util.h" |
| 53 #include "net/test/test_data_directory.h" |
| 54 #include "testing/gtest/include/gtest/gtest.h" | 54 #include "testing/gtest/include/gtest/gtest.h" |
| 55 #include "third_party/skia/include/core/SkColor.h" | 55 #include "third_party/skia/include/core/SkColor.h" |
| 56 #include "url/url_constants.h" | 56 #include "url/url_constants.h" |
| 57 | 57 |
| 58 namespace content { | 58 namespace content { |
| 59 namespace { | 59 namespace { |
| 60 | 60 |
| 61 class TestInterstitialPage; | 61 class TestInterstitialPage; |
| 62 | 62 |
| 63 class TestInterstitialPageDelegate : public InterstitialPageDelegate { | 63 class TestInterstitialPageDelegate : public InterstitialPageDelegate { |
| (...skipping 3397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3461 // An automatic navigation. | 3461 // An automatic navigation. |
| 3462 contents()->GetMainFrame()->SendNavigateWithModificationCallback( | 3462 contents()->GetMainFrame()->SendNavigateWithModificationCallback( |
| 3463 2, 0, true, GURL(url::kAboutBlankURL), base::Bind(SetAsNonUserGesture)); | 3463 2, 0, true, GURL(url::kAboutBlankURL), base::Bind(SetAsNonUserGesture)); |
| 3464 | 3464 |
| 3465 EXPECT_EQ(1u, dialog_manager.reset_count()); | 3465 EXPECT_EQ(1u, dialog_manager.reset_count()); |
| 3466 | 3466 |
| 3467 contents()->SetJavaScriptDialogManagerForTesting(nullptr); | 3467 contents()->SetJavaScriptDialogManagerForTesting(nullptr); |
| 3468 } | 3468 } |
| 3469 | 3469 |
| 3470 } // namespace content | 3470 } // namespace content |
| OLD | NEW |