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

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

Issue 12150004: Category group support/Renamings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added destructor for CategoryFilter class per CQ failure. 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
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | components/tracing/child_trace_message_filter.h » ('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 (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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 void UITestBase::AppendBrowserLaunchSwitch(const char* name) { 503 void UITestBase::AppendBrowserLaunchSwitch(const char* name) {
504 launch_arguments_.AppendSwitch(name); 504 launch_arguments_.AppendSwitch(name);
505 } 505 }
506 506
507 void UITestBase::AppendBrowserLaunchSwitch(const char* name, 507 void UITestBase::AppendBrowserLaunchSwitch(const char* name,
508 const char* value) { 508 const char* value) {
509 launch_arguments_.AppendSwitchASCII(name, value); 509 launch_arguments_.AppendSwitchASCII(name, value);
510 } 510 }
511 511
512 bool UITestBase::BeginTracing(const std::string& categories) { 512 bool UITestBase::BeginTracing(const std::string& category_patterns) {
513 return automation()->BeginTracing(categories); 513 return automation()->BeginTracing(category_patterns);
514 } 514 }
515 515
516 std::string UITestBase::EndTracing() { 516 std::string UITestBase::EndTracing() {
517 std::string json_trace_output; 517 std::string json_trace_output;
518 if (!automation()->EndTracing(&json_trace_output)) 518 if (!automation()->EndTracing(&json_trace_output))
519 return std::string(); 519 return std::string();
520 return json_trace_output; 520 return json_trace_output;
521 } 521 }
522 522
523 // UITest methods 523 // UITest methods
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 ASSERT_TRUE(session_end_completed); 721 ASSERT_TRUE(session_end_completed);
722 722
723 // Make sure session restore says we didn't crash. 723 // Make sure session restore says we didn't crash.
724 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences()); 724 scoped_ptr<DictionaryValue> profile_prefs(GetDefaultProfilePreferences());
725 ASSERT_TRUE(profile_prefs.get()); 725 ASSERT_TRUE(profile_prefs.get());
726 std::string exit_type; 726 std::string exit_type;
727 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly, 727 ASSERT_TRUE(profile_prefs->GetString(prefs::kSessionExitedCleanly,
728 &exit_type)); 728 &exit_type));
729 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type); 729 EXPECT_EQ(ProfileImpl::kPrefExitTypeNormal, exit_type);
730 } 730 }
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | components/tracing/child_trace_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698