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

Side by Side Diff: content/shell/webkit_test_runner_host.cc

Issue 11085091: [content shell] remove spurious printf format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/webkit_test_runner_host.h" 5 #include "content/shell/webkit_test_runner_host.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 error_->flush(); 60 error_->flush();
61 } 61 }
62 state_ = IN_IMAGE_BLOCK; 62 state_ = IN_IMAGE_BLOCK;
63 } 63 }
64 64
65 void WebKitTestResultPrinter::PrintImageHeader( 65 void WebKitTestResultPrinter::PrintImageHeader(
66 const std::string& actual_hash, 66 const std::string& actual_hash,
67 const std::string& expected_hash) { 67 const std::string& expected_hash) {
68 if (state_ != IN_IMAGE_BLOCK || capture_text_only_) 68 if (state_ != IN_IMAGE_BLOCK || capture_text_only_)
69 return; 69 return;
70 *output_ << "\nActualHash: " << actual_hash << "%s\n"; 70 *output_ << "\nActualHash: " << actual_hash << "\n";
71 if (!expected_hash.empty()) 71 if (!expected_hash.empty())
72 *output_ << "\nExpectedHash: " << expected_hash << "%s\n"; 72 *output_ << "\nExpectedHash: " << expected_hash << "\n";
73 } 73 }
74 74
75 void WebKitTestResultPrinter::PrintImageBlock( 75 void WebKitTestResultPrinter::PrintImageBlock(
76 const std::vector<unsigned char>& png_image) { 76 const std::vector<unsigned char>& png_image) {
77 if (state_ != IN_IMAGE_BLOCK || capture_text_only_) 77 if (state_ != IN_IMAGE_BLOCK || capture_text_only_)
78 return; 78 return;
79 *output_ << "Content-Type: image/png\n"; 79 *output_ << "Content-Type: image/png\n";
80 *output_ << "Content-Length: " << png_image.size() << "\n"; 80 *output_ << "Content-Length: " << png_image.size() << "\n";
81 output_->write( 81 output_->write(
82 reinterpret_cast<const char*>(&png_image[0]), png_image.size()); 82 reinterpret_cast<const char*>(&png_image[0]), png_image.size());
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 WebKitTestController::Get()->WaitUntilDone(); 378 WebKitTestController::Get()->WaitUntilDone();
379 } 379 }
380 380
381 void WebKitTestRunnerHost::OnNotImplemented( 381 void WebKitTestRunnerHost::OnNotImplemented(
382 const std::string& object_name, 382 const std::string& object_name,
383 const std::string& property_name) { 383 const std::string& property_name) {
384 WebKitTestController::Get()->NotImplemented(object_name, property_name); 384 WebKitTestController::Get()->NotImplemented(object_name, property_name);
385 } 385 }
386 386
387 } // namespace content 387 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698