OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #import "ios/web/public/navigation_item.h" | 10 #import "ios/web/public/navigation_item.h" |
11 #import "ios/web/public/navigation_manager.h" | 11 #import "ios/web/public/navigation_manager.h" |
12 #import "ios/web/public/test/http_server.h" | 12 #import "ios/web/public/test/http_server/http_server.h" |
13 #include "ios/web/public/test/http_server_util.h" | 13 #include "ios/web/public/test/http_server/http_server_util.h" |
14 #import "ios/web/public/web_state/navigation_context.h" | 14 #import "ios/web/public/web_state/navigation_context.h" |
15 #include "ios/web/public/web_state/web_state_observer.h" | 15 #include "ios/web/public/web_state/web_state_observer.h" |
16 #include "ios/web/test/test_url_constants.h" | 16 #include "ios/web/test/test_url_constants.h" |
17 #import "ios/web/test/web_int_test.h" | 17 #import "ios/web/test/web_int_test.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "ui/base/page_transition_types.h" | 20 #include "ui/base/page_transition_types.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 #include "url/scheme_host_port.h" | 22 #include "url/scheme_host_port.h" |
23 | 23 |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 // delegate does not run callback for ShowRepostFormWarningDialog. Clearing | 626 // delegate does not run callback for ShowRepostFormWarningDialog. Clearing |
627 // the delegate will allow form resubmission. Remove this workaround (clearing | 627 // the delegate will allow form resubmission. Remove this workaround (clearing |
628 // the delegate, once |check_for_repost| is supported). | 628 // the delegate, once |check_for_repost| is supported). |
629 web_state()->SetDelegate(nullptr); | 629 web_state()->SetDelegate(nullptr); |
630 ExecuteBlockAndWaitForLoad(action, ^{ | 630 ExecuteBlockAndWaitForLoad(action, ^{ |
631 navigation_manager()->GoForward(); | 631 navigation_manager()->GoForward(); |
632 }); | 632 }); |
633 } | 633 } |
634 | 634 |
635 } // namespace web | 635 } // namespace web |
OLD | NEW |