| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "content/public/browser/render_view_host.h" | 13 #include "content/public/browser/render_view_host.h" |
| 14 #include "content/public/browser/render_widget_host_view.h" | 14 #include "content/public/browser/render_widget_host_view.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "content/public/common/content_paths.h" | 16 #include "content/public/common/content_paths.h" |
| 17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
| 18 #include "content/public/test/browser_test_utils.h" | 18 #include "content/public/test/browser_test_utils.h" |
| 19 #include "content/shell/shell.h" | 19 #include "content/shell/shell.h" |
| 20 #include "content/test/content_browser_test.h" | 20 #include "content/test/content_browser_test.h" |
| 21 #include "content/test/content_browser_test_utils.h" | 21 #include "content/test/content_browser_test_utils.h" |
| 22 #include "googleurl/src/gurl.h" | |
| 23 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
| 26 #include "third_party/skia/include/core/SkColor.h" | 25 #include "third_party/skia/include/core/SkColor.h" |
| 27 #include "ui/compositor/compositor_setup.h" | 26 #include "ui/compositor/compositor_setup.h" |
| 28 #include "ui/gfx/codec/png_codec.h" | 27 #include "ui/gfx/codec/png_codec.h" |
| 29 #include "ui/gfx/size.h" | 28 #include "ui/gfx/size.h" |
| 30 #include "ui/gl/gl_switches.h" | 29 #include "ui/gl/gl_switches.h" |
| 31 #include "ui/snapshot/snapshot.h" | 30 #include "ui/snapshot/snapshot.h" |
| 32 | 31 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 552 |
| 554 gfx::Size container_size(400, 300); | 553 gfx::Size container_size(400, 300); |
| 555 base::FilePath url = | 554 base::FilePath url = |
| 556 test_data_dir().AppendASCII("pixel_browser_plugin.html"); | 555 test_data_dir().AppendASCII("pixel_browser_plugin.html"); |
| 557 RunPixelTest(container_size, url, ref_img_revision_update, | 556 RunPixelTest(container_size, url, ref_img_revision_update, |
| 558 ref_pixels, ref_pixel_count); | 557 ref_pixels, ref_pixel_count); |
| 559 } | 558 } |
| 560 | 559 |
| 561 } // namespace content | 560 } // namespace content |
| 562 | 561 |
| OLD | NEW |