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

Side by Side Diff: chrome/test/ui_test_utils.cc

Issue 3354005: Re-lands 58186: (Closed)
Patch Set: Created 10 years, 3 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_test_utils.h ('k') | chrome/test/webdriver/keymap.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_test_utils.h" 5 #include "chrome/test/ui_test_utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 if (model->IsLoaded()) 544 if (model->IsLoaded())
545 return; 545 return;
546 BookmarkLoadObserver observer; 546 BookmarkLoadObserver observer;
547 model->AddObserver(&observer); 547 model->AddObserver(&observer);
548 RunMessageLoop(); 548 RunMessageLoop();
549 model->RemoveObserver(&observer); 549 model->RemoveObserver(&observer);
550 ASSERT_TRUE(model->IsLoaded()); 550 ASSERT_TRUE(model->IsLoaded());
551 } 551 }
552 552
553 bool SendKeyPressSync(gfx::NativeWindow window, 553 bool SendKeyPressSync(gfx::NativeWindow window,
554 base::KeyboardCode key, 554 app::KeyboardCode key,
555 bool control, 555 bool control,
556 bool shift, 556 bool shift,
557 bool alt, 557 bool alt,
558 bool command) { 558 bool command) {
559 if (!ui_controls::SendKeyPressNotifyWhenDone( 559 if (!ui_controls::SendKeyPressNotifyWhenDone(
560 window, key, control, shift, alt, command, 560 window, key, control, shift, alt, command,
561 new MessageLoop::QuitTask())) { 561 new MessageLoop::QuitTask())) {
562 LOG(ERROR) << "ui_controls::SendKeyPressNotifyWhenDone failed"; 562 LOG(ERROR) << "ui_controls::SendKeyPressNotifyWhenDone failed";
563 return false; 563 return false;
564 } 564 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 TestWebSocketServer::~TestWebSocketServer() { 676 TestWebSocketServer::~TestWebSocketServer() {
677 scoped_ptr<CommandLine> cmd_line(CreateWebSocketServerCommandLine()); 677 scoped_ptr<CommandLine> cmd_line(CreateWebSocketServerCommandLine());
678 cmd_line->AppendSwitchASCII("server", "stop"); 678 cmd_line->AppendSwitchASCII("server", "stop");
679 cmd_line->AppendSwitch("chromium"); 679 cmd_line->AppendSwitch("chromium");
680 cmd_line->AppendSwitchPath("pidfile", websocket_pid_file_); 680 cmd_line->AppendSwitchPath("pidfile", websocket_pid_file_);
681 base::LaunchApp(*cmd_line.get(), true, false, NULL); 681 base::LaunchApp(*cmd_line.get(), true, false, NULL);
682 } 682 }
683 683
684 } // namespace ui_test_utils 684 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils.h ('k') | chrome/test/webdriver/keymap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698