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

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

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "chrome/test/base/test_switches.h" 51 #include "chrome/test/base/test_switches.h"
52 #include "chrome/test/base/testing_profile.h" 52 #include "chrome/test/base/testing_profile.h"
53 #include "net/base/net_util.h" 53 #include "net/base/net_util.h"
54 #include "ui/gl/gl_implementation.h" 54 #include "ui/gl/gl_implementation.h"
55 #include "url/gurl.h" 55 #include "url/gurl.h"
56 56
57 #if defined(OS_WIN) 57 #if defined(OS_WIN)
58 #include "base/win/windows_version.h" 58 #include "base/win/windows_version.h"
59 #endif 59 #endif
60 60
61 #if defined(USE_AURA)
62 #include "ui/compositor/compositor_switches.h"
63 #endif
64
61 using base::Time; 65 using base::Time;
62 using base::TimeDelta; 66 using base::TimeDelta;
63 using base::TimeTicks; 67 using base::TimeTicks;
64 68
65 const wchar_t UITestBase::kFailedNoCrashService[] = 69 const wchar_t UITestBase::kFailedNoCrashService[] =
66 #if defined(OS_WIN) 70 #if defined(OS_WIN)
67 L"NOTE: This test is expected to fail if crash_service.exe is not " 71 L"NOTE: This test is expected to fail if crash_service.exe is not "
68 L"running. Start it manually before running this test (see the build " 72 L"running. Start it manually before running this test (see the build "
69 L"output directory)."; 73 L"output directory).";
70 #elif defined(OS_LINUX) 74 #elif defined(OS_LINUX)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 if (!launch_arguments_.HasSwitch(switches::kHomePage)) 201 if (!launch_arguments_.HasSwitch(switches::kHomePage))
198 launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_); 202 launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_);
199 203
200 if (launch_arguments_.GetArgs().empty() && 204 if (launch_arguments_.GetArgs().empty() &&
201 !launch_arguments_.HasSwitch(switches::kRestoreLastSession)) { 205 !launch_arguments_.HasSwitch(switches::kRestoreLastSession)) {
202 launch_arguments_.AppendArg(homepage_); 206 launch_arguments_.AppendArg(homepage_);
203 } 207 }
204 } 208 }
205 if (!test_name_.empty()) 209 if (!test_name_.empty())
206 launch_arguments_.AppendSwitchASCII(switches::kTestName, test_name_); 210 launch_arguments_.AppendSwitchASCII(switches::kTestName, test_name_);
211 #if defined(USE_AURA)
212 if (!CommandLine::ForCurrentProcess()->HasSwitch(
213 switches::kDisableTestCompositor)) {
214 launch_arguments_.AppendSwitch(switches::kTestCompositor);
215 }
216 #endif
207 } 217 }
208 218
209 void UITestBase::SetUpProfile() { 219 void UITestBase::SetUpProfile() {
210 } 220 }
211 221
212 void UITestBase::LaunchBrowser() { 222 void UITestBase::LaunchBrowser() {
213 LaunchBrowser(launch_arguments_, clear_profile_); 223 LaunchBrowser(launch_arguments_, clear_profile_);
214 } 224 }
215 225
216 void UITestBase::LaunchBrowserAndServer() { 226 void UITestBase::LaunchBrowserAndServer() {
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 ASSERT_TRUE(session_end_completed); 692 ASSERT_TRUE(session_end_completed);
683 693
684 // Make sure session restore says we didn't crash. 694 // Make sure session restore says we didn't crash.
685 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences()); 695 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences());
686 ASSERT_TRUE(profile_prefs.get()); 696 ASSERT_TRUE(profile_prefs.get());
687 std::string exit_type; 697 std::string exit_type;
688 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly, 698 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly,
689 &exit_type)); 699 &exit_type));
690 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type); 700 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type);
691 } 701 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/test/ppapi/ppapi_test.cc ('k') | trunk/src/components/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698