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

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

Issue 802523004: Add a test case to test disabling remote connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Jamie's comments Created 5 years, 11 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 // Callback used by Approve to check whether the chromoting app has 334 // Callback used by Approve to check whether the chromoting app has
335 // successfully authenticated with the Google services. 335 // successfully authenticated with the Google services.
336 static bool IsAuthenticatedInWindow(content::WebContents* web_contents); 336 static bool IsAuthenticatedInWindow(content::WebContents* web_contents);
337 337
338 // Callback used to check whether a host action is completed. 338 // Callback used to check whether a host action is completed.
339 // Used by browser tests while conditionally waiting for host actions. 339 // Used by browser tests while conditionally waiting for host actions.
340 static bool IsHostActionComplete( 340 static bool IsHostActionComplete(
341 content::WebContents* client_web_content, std::string host_action_var); 341 content::WebContents* client_web_content, std::string host_action_var);
342 342
343 // Test if the remoting app mode is equal to the given mode
344 bool IsAppModeEqualTo(const std::string& mode);
345
346 // Disable remote connection while the remote connection is enabled
347 void DisableRemoteConnection();
348
343 private: 349 private:
344 // Fields 350 // Fields
345 351
346 // This test needs to make live DNS requests for access to 352 // This test needs to make live DNS requests for access to
347 // GAIA and sync server URLs under google.com. We use a scoped version 353 // GAIA and sync server URLs under google.com. We use a scoped version
348 // to override the default resolver while the test is active. 354 // to override the default resolver while the test is active.
349 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; 355 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_;
350 356
351 // Stores all the WebContents instance in a stack so that we can easily 357 // Stores all the WebContents instance in a stack so that we can easily
352 // return to the previous instance. 358 // return to the previous instance.
(...skipping 23 matching lines...) Expand all
376 std::string password_; 382 std::string password_;
377 std::string me2me_pin_; 383 std::string me2me_pin_;
378 std::string remote_host_name_; 384 std::string remote_host_name_;
379 std::string extension_name_; 385 std::string extension_name_;
380 std::string http_server_; 386 std::string http_server_;
381 }; 387 };
382 388
383 } // namespace remoting 389 } // namespace remoting
384 390
385 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ 391 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/test/remoting/me2me_browsertest.cc ('k') | chrome/test/remoting/remote_desktop_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698