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 #import "ios/web/public/navigation_item.h" | 9 #import "ios/web/public/navigation_item.h" |
10 #import "ios/web/public/navigation_manager.h" | 10 #import "ios/web/public/navigation_manager.h" |
11 #import "ios/web/public/test/http_server.h" | 11 #import "ios/web/public/test/http_server/http_server.h" |
12 #include "ios/web/public/test/http_server_util.h" | 12 #include "ios/web/public/test/http_server/http_server_util.h" |
13 #import "ios/web/public/web_state/navigation_context.h" | 13 #import "ios/web/public/web_state/navigation_context.h" |
14 #include "ios/web/public/web_state/web_state_observer.h" | 14 #include "ios/web/public/web_state/web_state_observer.h" |
15 #include "ios/web/test/test_url_constants.h" | 15 #include "ios/web/test/test_url_constants.h" |
16 #import "ios/web/test/web_int_test.h" | 16 #import "ios/web/test/web_int_test.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/base/page_transition_types.h" | 19 #include "ui/base/page_transition_types.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 #include "url/scheme_host_port.h" | 21 #include "url/scheme_host_port.h" |
22 | 22 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 360 |
361 // Reload native content. | 361 // Reload native content. |
362 EXPECT_CALL(*observer_, DidStartNavigation(_)) | 362 EXPECT_CALL(*observer_, DidStartNavigation(_)) |
363 .WillOnce(VerifyReloadStartedContext(web_state(), url, &context)); | 363 .WillOnce(VerifyReloadStartedContext(web_state(), url, &context)); |
364 EXPECT_CALL(*observer_, DidFinishNavigation(_)) | 364 EXPECT_CALL(*observer_, DidFinishNavigation(_)) |
365 .WillOnce(VerifyReloadFinishedContext(web_state(), url, &context)); | 365 .WillOnce(VerifyReloadFinishedContext(web_state(), url, &context)); |
366 navigation_manager()->Reload(ReloadType::NORMAL, false /*check_for_repost*/); | 366 navigation_manager()->Reload(ReloadType::NORMAL, false /*check_for_repost*/); |
367 } | 367 } |
368 | 368 |
369 } // namespace web | 369 } // namespace web |
OLD | NEW |