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

Side by Side Diff: chrome/test/base/ui_test_utils.h

Issue 10541168: Add end to end client cert auth test for wss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove p12 file Created 8 years, 5 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 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 // Stops the python websocket server if it was already started. 354 // Stops the python websocket server if it was already started.
355 ~TestWebSocketServer(); 355 ~TestWebSocketServer();
356 356
357 // Use a random port, useful for tests that are sharded. Returns the port. 357 // Use a random port, useful for tests that are sharded. Returns the port.
358 int UseRandomPort(); 358 int UseRandomPort();
359 359
360 // Serves with TLS. 360 // Serves with TLS.
361 void UseTLS(); 361 void UseTLS();
362 362
363 // Serves with client cert authentication.
wtc 2012/07/11 21:35:57 Nit: this comment should say: // Requests client
Takashi Toyoshima 2012/07/12 05:20:13 Done.
364 void UseClientAuthentication();
365
363 // Starts the python websocket server using |root_directory|. Returns whether 366 // Starts the python websocket server using |root_directory|. Returns whether
364 // the server was successfully started. 367 // the server was successfully started.
365 bool Start(const FilePath& root_directory); 368 bool Start(const FilePath& root_directory);
366 369
367 private: 370 private:
368 // Sets up PYTHONPATH to run websocket_server.py. 371 // Sets up PYTHONPATH to run websocket_server.py.
369 void SetPythonPath(); 372 void SetPythonPath();
370 373
371 // Creates a CommandLine for invoking the python interpreter. 374 // Creates a CommandLine for invoking the python interpreter.
372 CommandLine* CreatePythonCommandLine(); 375 CommandLine* CreatePythonCommandLine();
(...skipping 18 matching lines...) Expand all
391 // JobObject used to clean up orphaned child process. 394 // JobObject used to clean up orphaned child process.
392 base::win::ScopedHandle job_handle_; 395 base::win::ScopedHandle job_handle_;
393 #endif 396 #endif
394 397
395 // Holds port number which the python websocket server uses. 398 // Holds port number which the python websocket server uses.
396 int port_; 399 int port_;
397 400
398 // If the python websocket server serves with TLS. 401 // If the python websocket server serves with TLS.
399 bool secure_; 402 bool secure_;
400 403
404 // If the python websocket server serves with client cert authentication.
405 bool client_authentication_;
406
401 DISALLOW_COPY_AND_ASSIGN(TestWebSocketServer); 407 DISALLOW_COPY_AND_ASSIGN(TestWebSocketServer);
402 }; 408 };
403 409
404 // A WindowedNotificationObserver allows code to watch for a notification 410 // A WindowedNotificationObserver allows code to watch for a notification
405 // over a window of time. Typically testing code will need to do something 411 // over a window of time. Typically testing code will need to do something
406 // like this: 412 // like this:
407 // PerformAction() 413 // PerformAction()
408 // WaitForCompletionNotification() 414 // WaitForCompletionNotification()
409 // This leads to flakiness as there's a window between PerformAction returning 415 // This leads to flakiness as there's a window between PerformAction returning
410 // and the observers getting registered, where a notification will be missed. 416 // and the observers getting registered, where a notification will be missed.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 // ui_controls_linux.cc and ui_controls_mac.cc 701 // ui_controls_linux.cc and ui_controls_mac.cc
696 void ClickTask(ui_controls::MouseButton button, 702 void ClickTask(ui_controls::MouseButton button,
697 int state, 703 int state,
698 const base::Closure& followup); 704 const base::Closure& followup);
699 705
700 } // namespace internal 706 } // namespace internal
701 707
702 } // namespace ui_test_utils 708 } // namespace ui_test_utils
703 709
704 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 710 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698