Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/renderer/automation/automation_renderer_helper_browsertest.cc

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/md5.h" 7 #include "base/md5.h"
8 #include "chrome/test/base/chrome_render_view_test.h" 8 #include "chrome/test/base/chrome_render_view_test.h"
9 #include "chrome/renderer/automation/automation_renderer_helper.h" 9 #include "chrome/renderer/automation/automation_renderer_helper.h"
10 #include "content/public/renderer/render_view.h" 10 #include "content/public/renderer/render_view.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"
14 14
15 namespace { 15 namespace {
16 16
17 const char kThreeBoxesHTML[] = 17 const char kThreeBoxesHTML[] =
18 "<style> * { margin:0px; padding:0px } </style>" 18 "<style> * { margin:0px; padding:0px } </style>"
19 "<body>" 19 "<body>"
20 " <div style='background:red;width:100;height:100'></div>" 20 " <div style='background:red;width:100;height:100'></div>"
21 " <div style='background:green;width:100;height:100'></div>" 21 " <div style='background:green;width:100;height:100'></div>"
22 " <div style='background:blue;width:100;height:100'></div>" 22 " <div style='background:blue;width:100;height:100'></div>"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 " <div style='background:green;width:100;height:100'></div>" 69 " <div style='background:green;width:100;height:100'></div>"
70 " <div style='background:blue;width:100;height:100'></div>" 70 " <div style='background:blue;width:100;height:100'></div>"
71 "</body>"; 71 "</body>";
72 LoadHTML(kThreeBoxesRTLHTML); 72 LoadHTML(kThreeBoxesRTLHTML);
73 std::vector<unsigned char> png_data; 73 std::vector<unsigned char> png_data;
74 std::string error_msg; 74 std::string error_msg;
75 ASSERT_TRUE(AutomationRendererHelper(view_).SnapshotEntirePage( 75 ASSERT_TRUE(AutomationRendererHelper(view_).SnapshotEntirePage(
76 view_->GetWebView(), &png_data, &error_msg)) << error_msg; 76 view_->GetWebView(), &png_data, &error_msg)) << error_msg;
77 CompareSnapshot(png_data, kThreeBoxesMD5); 77 CompareSnapshot(png_data, kThreeBoxesMD5);
78 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698