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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 565943002: Credential Manager: Introduce a MockCredentialManagerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // Simulates a click on a desktop notification. 528 // Simulates a click on a desktop notification.
529 bool SimulateWebNotificationClick(const std::string& value); 529 bool SimulateWebNotificationClick(const std::string& value);
530 530
531 // Speech recognition related functions. 531 // Speech recognition related functions.
532 void AddMockSpeechRecognitionResult(const std::string& transcript, 532 void AddMockSpeechRecognitionResult(const std::string& transcript,
533 double confidence); 533 double confidence);
534 void SetMockSpeechRecognitionError(const std::string& error, 534 void SetMockSpeechRecognitionError(const std::string& error,
535 const std::string& message); 535 const std::string& message);
536 bool WasMockSpeechRecognitionAborted(); 536 bool WasMockSpeechRecognitionAborted();
537 537
538 // Credential Manager mock functions
539 // TODO(mkwst): Support FederatedCredential.
540 void AddMockCredentialManagerResponse(const std::string& id,
541 const std::string& name,
542 const std::string& avatar,
543 const std::string& password);
544
538 // WebPageOverlay related functions. Permits the adding and removing of only 545 // WebPageOverlay related functions. Permits the adding and removing of only
539 // one opaque overlay. 546 // one opaque overlay.
540 void AddWebPageOverlay(); 547 void AddWebPageOverlay();
541 void RemoveWebPageOverlay(); 548 void RemoveWebPageOverlay();
542 549
543 void DisplayAsync(); 550 void DisplayAsync();
544 void DisplayAsyncThen(v8::Handle<v8::Function> callback); 551 void DisplayAsyncThen(v8::Handle<v8::Function> callback);
545 552
546 // Similar to DisplayAsyncThen(), but pass parameters of the captured 553 // Similar to DisplayAsyncThen(), but pass parameters of the captured
547 // snapshot (width, height, snapshot) to the callback. The snapshot is in 554 // snapshot (width, height, snapshot) to the callback. The snapshot is in
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 bool use_mock_theme_; 770 bool use_mock_theme_;
764 771
765 base::WeakPtrFactory<TestRunner> weak_factory_; 772 base::WeakPtrFactory<TestRunner> weak_factory_;
766 773
767 DISALLOW_COPY_AND_ASSIGN(TestRunner); 774 DISALLOW_COPY_AND_ASSIGN(TestRunner);
768 }; 775 };
769 776
770 } // namespace content 777 } // namespace content
771 778
772 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 779 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698