OLD | NEW |
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 "base/macros.h" |
5 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
6 #include "content/common/frame_messages.h" | 7 #include "content/common/frame_messages.h" |
7 #include "content/common/view_message_enums.h" | 8 #include "content/common/view_message_enums.h" |
8 #include "content/public/common/content_constants.h" | 9 #include "content/public/common/content_constants.h" |
9 #include "content/public/test/frame_load_waiter.h" | 10 #include "content/public/test/frame_load_waiter.h" |
10 #include "content/public/test/render_view_test.h" | 11 #include "content/public/test/render_view_test.h" |
11 #include "content/renderer/pepper/plugin_power_saver_helper.h" | 12 #include "content/renderer/pepper/plugin_power_saver_helper.h" |
12 #include "content/renderer/render_frame_impl.h" | 13 #include "content/renderer/render_frame_impl.h" |
13 #include "content/renderer/render_view_impl.h" | 14 #include "content/renderer/render_view_impl.h" |
14 #include "content/test/test_render_frame.h" | 15 #include "content/test/test_render_frame.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 91 |
91 LoadHTML("<html></html>"); | 92 LoadHTML("<html></html>"); |
92 | 93 |
93 EXPECT_EQ(RenderFrame::CONTENT_STATUS_PERIPHERAL, | 94 EXPECT_EQ(RenderFrame::CONTENT_STATUS_PERIPHERAL, |
94 frame()->GetPeripheralContentStatus( | 95 frame()->GetPeripheralContentStatus( |
95 url::Origin(GURL("http://same.com")), | 96 url::Origin(GURL("http://same.com")), |
96 url::Origin(GURL("http://other.com")), gfx::Size(100, 100))); | 97 url::Origin(GURL("http://other.com")), gfx::Size(100, 100))); |
97 } | 98 } |
98 | 99 |
99 } // namespace content | 100 } // namespace content |
OLD | NEW |