| OLD | NEW |
| 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 void SimulateWebNotificationClose(const std::string& title, bool by_user); | 535 void SimulateWebNotificationClose(const std::string& title, bool by_user); |
| 536 | 536 |
| 537 // Speech recognition related functions. | 537 // Speech recognition related functions. |
| 538 void AddMockSpeechRecognitionResult(const std::string& transcript, | 538 void AddMockSpeechRecognitionResult(const std::string& transcript, |
| 539 double confidence); | 539 double confidence); |
| 540 void SetMockSpeechRecognitionError(const std::string& error, | 540 void SetMockSpeechRecognitionError(const std::string& error, |
| 541 const std::string& message); | 541 const std::string& message); |
| 542 | 542 |
| 543 // Credential Manager mock functions | 543 // Credential Manager mock functions |
| 544 // TODO(mkwst): Support FederatedCredential. | 544 // TODO(mkwst): Support FederatedCredential. |
| 545 void AddMockCredentialManagerResponse(const std::string& id, | 545 void SetMockCredentialManagerResponse(const std::string& id, |
| 546 const std::string& name, | 546 const std::string& name, |
| 547 const std::string& avatar, | 547 const std::string& avatar, |
| 548 const std::string& password); | 548 const std::string& password); |
| 549 void AddMockCredentialManagerError(const std::string& error); | 549 void ClearMockCredentialManagerResponse(); |
| 550 void SetMockCredentialManagerError(const std::string& error); |
| 550 | 551 |
| 551 // Takes care of notifying the delegate after a change to layout test runtime | 552 // Takes care of notifying the delegate after a change to layout test runtime |
| 552 // flags. | 553 // flags. |
| 553 void OnLayoutTestRuntimeFlagsChanged(); | 554 void OnLayoutTestRuntimeFlagsChanged(); |
| 554 | 555 |
| 555 /////////////////////////////////////////////////////////////////////////// | 556 /////////////////////////////////////////////////////////////////////////// |
| 556 // Internal helpers | 557 // Internal helpers |
| 557 | 558 |
| 558 bool IsFramePartOfMainTestWindow(blink::WebFrame*) const; | 559 bool IsFramePartOfMainTestWindow(blink::WebFrame*) const; |
| 559 | 560 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 blink::WebEffectiveConnectionType effective_connection_type_; | 656 blink::WebEffectiveConnectionType effective_connection_type_; |
| 656 | 657 |
| 657 base::WeakPtrFactory<TestRunner> weak_factory_; | 658 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 658 | 659 |
| 659 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 660 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 } // namespace test_runner | 663 } // namespace test_runner |
| 663 | 664 |
| 664 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 665 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |