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

Side by Side Diff: chrome/test/ui/ui_test.cc

Issue 12178009: Revert 180308 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
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 "chrome/test/ui/ui_test.h" 5 #include "chrome/test/ui/ui_test.h"
6 6
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 #include <signal.h> 8 #include <signal.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #endif 10 #endif
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 if (!launch_arguments_.HasSwitch(switches::kHomePage)) 198 if (!launch_arguments_.HasSwitch(switches::kHomePage))
199 launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_); 199 launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_);
200 200
201 if (launch_arguments_.GetArgs().empty() && 201 if (launch_arguments_.GetArgs().empty() &&
202 !launch_arguments_.HasSwitch(switches::kRestoreLastSession)) { 202 !launch_arguments_.HasSwitch(switches::kRestoreLastSession)) {
203 launch_arguments_.AppendArg(homepage_); 203 launch_arguments_.AppendArg(homepage_);
204 } 204 }
205 } 205 }
206 if (!test_name_.empty()) 206 if (!test_name_.empty())
207 launch_arguments_.AppendSwitchASCII(switches::kTestName, test_name_); 207 launch_arguments_.AppendSwitchASCII(switches::kTestName, test_name_);
208 // TODO: !OS_WIN is temporary, will remove shortly. 208 #if defined(USE_AURA)
209 #if defined(USE_AURA) && !defined(OS_WIN)
210 if (!CommandLine::ForCurrentProcess()->HasSwitch( 209 if (!CommandLine::ForCurrentProcess()->HasSwitch(
211 switches::kDisableTestCompositor)) { 210 switches::kDisableTestCompositor)) {
212 launch_arguments_.AppendSwitch(switches::kTestCompositor); 211 launch_arguments_.AppendSwitch(switches::kTestCompositor);
213 } 212 }
214 #endif 213 #endif
215 } 214 }
216 215
217 void UITestBase::SetUpProfile() { 216 void UITestBase::SetUpProfile() {
218 } 217 }
219 218
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 ASSERT_TRUE(session_end_completed); 712 ASSERT_TRUE(session_end_completed);
714 713
715 // Make sure session restore says we didn't crash. 714 // Make sure session restore says we didn't crash.
716 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences()); 715 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences());
717 ASSERT_TRUE(profile_prefs.get()); 716 ASSERT_TRUE(profile_prefs.get());
718 std::string exit_type; 717 std::string exit_type;
719 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly, 718 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly,
720 &exit_type)); 719 &exit_type));
721 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type); 720 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type);
722 } 721 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698