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

Side by Side Diff: content/test/test_blink_web_unit_test_support.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/test/content_test_suite.cc ('k') | content/test/webrtc_content_browsertest_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/test/test_blink_web_unit_test_support.h" 5 #include "content/test/test_blink_web_unit_test_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 LOG(WARNING) << "Failed to create a temp dir for the filesystem." 99 LOG(WARNING) << "Failed to create a temp dir for the filesystem."
100 "FileSystem feature will be disabled."; 100 "FileSystem feature will be disabled.";
101 DCHECK(file_system_root_.path().empty()); 101 DCHECK(file_system_root_.path().empty());
102 } 102 }
103 103
104 #if defined(OS_WIN) 104 #if defined(OS_WIN)
105 // Ensure we pick up the default theme engine. 105 // Ensure we pick up the default theme engine.
106 SetThemeEngine(NULL); 106 SetThemeEngine(NULL);
107 #endif 107 #endif
108 108
109 CommandLine::ForCurrentProcess()->AppendSwitch(switches::kEnableFileCookies); 109 base::CommandLine::ForCurrentProcess()->AppendSwitch(
110 switches::kEnableFileCookies);
110 111
111 // Test shell always exposes the GC. 112 // Test shell always exposes the GC.
112 std::string flags("--expose-gc"); 113 std::string flags("--expose-gc");
113 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); 114 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
114 } 115 }
115 116
116 TestBlinkWebUnitTestSupport::~TestBlinkWebUnitTestSupport() { 117 TestBlinkWebUnitTestSupport::~TestBlinkWebUnitTestSupport() {
117 url_loader_factory_.reset(); 118 url_loader_factory_.reset();
118 mock_clipboard_.reset(); 119 mock_clipboard_.reset();
119 blink::shutdown(); 120 blink::shutdown();
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 return blink::WebData(buffer.data(), buffer.size()); 313 return blink::WebData(buffer.data(), buffer.size());
313 } 314 }
314 315
315 bool TestBlinkWebUnitTestSupport::getBlobItems( 316 bool TestBlinkWebUnitTestSupport::getBlobItems(
316 const blink::WebString& uuid, 317 const blink::WebString& uuid,
317 blink::WebVector<blink::WebBlobData::Item*>* items) { 318 blink::WebVector<blink::WebBlobData::Item*>* items) {
318 return blob_registry_.GetBlobItems(uuid, items); 319 return blob_registry_.GetBlobItems(uuid, items);
319 } 320 }
320 321
321 } // namespace content 322 } // namespace content
OLDNEW
« no previous file with comments | « content/test/content_test_suite.cc ('k') | content/test/webrtc_content_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698