OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "build/build_config.h" |
5 #include "content/common/site_isolation_policy.h" | 6 #include "content/common/site_isolation_policy.h" |
6 #include "content/public/test/render_view_test.h" | 7 #include "content/public/test/render_view_test.h" |
7 #include "content/renderer/history_controller.h" | 8 #include "content/renderer/history_controller.h" |
8 #include "content/renderer/render_frame_impl.h" | 9 #include "content/renderer/render_frame_impl.h" |
9 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 12 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 blink::WebHistoryInertCommit, true); | 57 blink::WebHistoryInertCommit, true); |
57 EXPECT_EQ(1ul, entry->root_history_node()->children().size()); | 58 EXPECT_EQ(1ul, entry->root_history_node()->children().size()); |
58 | 59 |
59 // Clear children for cross-page navigations. | 60 // Clear children for cross-page navigations. |
60 history_controller()->UpdateForCommit(main_frame, item, | 61 history_controller()->UpdateForCommit(main_frame, item, |
61 blink::WebHistoryInertCommit, false); | 62 blink::WebHistoryInertCommit, false); |
62 EXPECT_EQ(0ul, entry->root_history_node()->children().size()); | 63 EXPECT_EQ(0ul, entry->root_history_node()->children().size()); |
63 } | 64 } |
64 | 65 |
65 } // namespace | 66 } // namespace |
OLD | NEW |