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

Side by Side Diff: content/browser/gpu/gpu_pixel_browsertest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
OLDNEW
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_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 break; 140 break;
141 default: 141 default:
142 break; 142 break;
143 } 143 }
144 144
145 test_name_ = testing::UnitTest::GetInstance()->current_test_info()->name(); 145 test_name_ = testing::UnitTest::GetInstance()->current_test_info()->name();
146 const char* test_status_prefixes[] = { 146 const char* test_status_prefixes[] = {
147 "DISABLED_", "FLAKY_", "FAILS_", "MANUAL_"}; 147 "DISABLED_", "FLAKY_", "FAILS_", "MANUAL_"};
148 for (size_t i = 0; i < arraysize(test_status_prefixes); ++i) { 148 for (size_t i = 0; i < arraysize(test_status_prefixes); ++i) {
149 ReplaceFirstSubstringAfterOffset( 149 ReplaceFirstSubstringAfterOffset(
150 &test_name_, 0, test_status_prefixes[i], ""); 150 &test_name_, 0, test_status_prefixes[i], std::string());
151 } 151 }
152 152
153 ui::DisableTestCompositor(); 153 ui::DisableTestCompositor();
154 } 154 }
155 155
156 // If the existing ref image was saved from an revision older than the 156 // If the existing ref image was saved from an revision older than the
157 // ref_img_update_revision, refresh the ref image. 157 // ref_img_update_revision, refresh the ref image.
158 void RunPixelTest(const gfx::Size& tab_container_size, 158 void RunPixelTest(const gfx::Size& tab_container_size,
159 const base::FilePath& url, 159 const base::FilePath& url,
160 int64 ref_img_update_revision, 160 int64 ref_img_update_revision,
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 552
553 gfx::Size container_size(400, 300); 553 gfx::Size container_size(400, 300);
554 base::FilePath url = 554 base::FilePath url =
555 test_data_dir().AppendASCII("pixel_browser_plugin.html"); 555 test_data_dir().AppendASCII("pixel_browser_plugin.html");
556 RunPixelTest(container_size, url, ref_img_revision_update, 556 RunPixelTest(container_size, url, ref_img_revision_update,
557 ref_pixels, ref_pixel_count); 557 ref_pixels, ref_pixel_count);
558 } 558 }
559 559
560 } // namespace content 560 } // namespace content
561 561
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_memory_test.cc ('k') | content/browser/media/media_internals_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698