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

Side by Side Diff: chrome/test/remoting/remote_desktop_browsertest.h

Issue 544403002: Fix Auth browser-test failure: make sure element is ready to receive click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use conditional timeout waiter for an element to become enabled. Created 6 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
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 #ifndef CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ 5 #ifndef CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_
6 #define CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ 6 #define CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_
7 7
8 #include "base/debug/stack_trace.h" 8 #include "base/debug/stack_trace.h"
9 #include "chrome/browser/apps/app_browsertest_util.h" 9 #include "chrome/browser/apps/app_browsertest_util.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // Callback used by WaitForConnection to check whether the connection 307 // Callback used by WaitForConnection to check whether the connection
308 // has been established. 308 // has been established.
309 bool IsSessionConnected(); 309 bool IsSessionConnected();
310 310
311 // Callback used by Approve to check whether the chromoting app has 311 // Callback used by Approve to check whether the chromoting app has
312 // successfully authenticated with the Google services. 312 // successfully authenticated with the Google services.
313 bool IsAuthenticated() { 313 bool IsAuthenticated() {
314 return IsAuthenticatedInWindow(active_web_contents()); 314 return IsAuthenticatedInWindow(active_web_contents());
315 } 315 }
316 316
317 // Callback used by Approve to check whether the Accept button is enabled
318 // and ready to receive a click.
319 static bool IsEnabled(
320 content::WebContents* web_contents, std::string name);
weitao 2014/09/09 23:36:38 const std::string& name
anandc1 2014/09/10 00:52:26 Done.
321
317 // If the "Host version out-of-date" form is visible, dismiss it. 322 // If the "Host version out-of-date" form is visible, dismiss it.
318 void DismissHostVersionWarningIfVisible(); 323 void DismissHostVersionWarningIfVisible();
319 324
320 // Callback used by Approve to check whether the chromoting app has 325 // Callback used by Approve to check whether the chromoting app has
321 // successfully authenticated with the Google services. 326 // successfully authenticated with the Google services.
322 static bool IsAuthenticatedInWindow(content::WebContents* web_contents); 327 static bool IsAuthenticatedInWindow(content::WebContents* web_contents);
323 328
324 // Callback used to check whether a host action is completed. 329 // Callback used to check whether a host action is completed.
325 // Used by browser tests while conditionally waiting for host actions. 330 // Used by browser tests while conditionally waiting for host actions.
326 static bool IsHostActionComplete( 331 static bool IsHostActionComplete(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 std::string password_; 367 std::string password_;
363 std::string me2me_pin_; 368 std::string me2me_pin_;
364 std::string remote_host_name_; 369 std::string remote_host_name_;
365 std::string extension_name_; 370 std::string extension_name_;
366 std::string http_server_; 371 std::string http_server_;
367 }; 372 };
368 373
369 } // namespace remoting 374 } // namespace remoting
370 375
371 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ 376 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/remoting/remote_desktop_browsertest.cc » ('j') | chrome/test/remoting/remote_desktop_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698