| 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 <stdint.h> |
| 6 |
| 5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 6 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
| 7 #include "content/public/common/content_constants.h" | 9 #include "content/public/common/content_constants.h" |
| 8 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| 9 #include "content/public/common/pepper_plugin_info.h" | 11 #include "content/public/common/pepper_plugin_info.h" |
| 10 #include "content/public/renderer/content_renderer_client.h" | 12 #include "content/public/renderer/content_renderer_client.h" |
| 11 #include "content/public/test/render_view_test.h" | 13 #include "content/public/test/render_view_test.h" |
| 12 #include "content/renderer/pepper/pepper_webplugin_impl.h" | 14 #include "content/renderer/pepper/pepper_webplugin_impl.h" |
| 13 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" | 15 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
| 14 #include "content/renderer/pepper/plugin_module.h" | 16 #include "content/renderer/pepper/plugin_module.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 LoadHTML("<!DOCTYPE html><object type='test/always-throttle'></object>"); | 200 LoadHTML("<!DOCTYPE html><object type='test/always-throttle'></object>"); |
| 199 EXPECT_NE(0, pp_instance_); | 201 EXPECT_NE(0, pp_instance_); |
| 200 LoadHTML(""); | 202 LoadHTML(""); |
| 201 EXPECT_EQ(0, pp_instance_); | 203 EXPECT_EQ(0, pp_instance_); |
| 202 EXPECT_FALSE(throttle_engaged_); | 204 EXPECT_FALSE(throttle_engaged_); |
| 203 } | 205 } |
| 204 | 206 |
| 205 } // unnamed namespace | 207 } // unnamed namespace |
| 206 | 208 |
| 207 } // namespace content | 209 } // namespace content |
| OLD | NEW |