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

Side by Side Diff: chrome/browser/chrome_content_browser_client_unittest.cc

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: self-review Created 4 years, 11 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
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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 static const char kFakeGroupName[]; 160 static const char kFakeGroupName[];
161 static const char kDefaultGroupName[]; 161 static const char kDefaultGroupName[];
162 162
163 BlinkSettingsFieldTrialTest() 163 BlinkSettingsFieldTrialTest()
164 : trial_list_(NULL), 164 : trial_list_(NULL),
165 command_line_(base::CommandLine::NO_PROGRAM) {} 165 command_line_(base::CommandLine::NO_PROGRAM) {}
166 166
167 void SetUp() override { 167 void SetUp() override {
168 command_line_.AppendSwitchASCII( 168 command_line_.AppendSwitchASCII(
169 switches::kProcessType, switches::kRendererProcess); 169 switches::kProcessType, switches::kRendererProcess);
170
171 #if defined(OS_WIN)
172 command_line_.AppendArg(switches::kPrefetchArgumentRenderer);
gab 2016/01/26 21:40:26 This is a unittest, I would guess it doesn't go th
fdoray 2016/01/27 20:12:19 Done.
173 #endif // defined(OS_WIN)
170 } 174 }
171 175
172 void TearDown() override { 176 void TearDown() override {
173 variations::testing::ClearAllVariationParams(); 177 variations::testing::ClearAllVariationParams();
174 } 178 }
175 179
176 void CreateFieldTrial(const char* trial_name, const char* group_name) { 180 void CreateFieldTrial(const char* trial_name, const char* group_name) {
177 base::FieldTrialList::CreateFieldTrial(trial_name, group_name); 181 base::FieldTrialList::CreateFieldTrial(trial_name, group_name);
178 } 182 }
179 183
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 372
369 NavigationEntry* entry = browser()->tab_strip_model()-> 373 NavigationEntry* entry = browser()->tab_strip_model()->
370 GetActiveWebContents()->GetController().GetLastCommittedEntry(); 374 GetActiveWebContents()->GetController().GetLastCommittedEntry();
371 ASSERT_TRUE(entry != NULL); 375 ASSERT_TRUE(entry != NULL);
372 EXPECT_EQ(url_rewritten, entry->GetURL()); 376 EXPECT_EQ(url_rewritten, entry->GetURL());
373 EXPECT_EQ(url_original, entry->GetVirtualURL()); 377 EXPECT_EQ(url_original, entry->GetVirtualURL());
374 } 378 }
375 379
376 } // namespace content 380 } // namespace content
377 #endif // !defined(OS_IOS) && !defined(OS_ANDROID) 381 #endif // !defined(OS_IOS) && !defined(OS_ANDROID)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698