| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 // Converts a URL starting with file:///tmp/ to the local mapping. | 510 // Converts a URL starting with file:///tmp/ to the local mapping. |
| 511 std::string PathToLocalResource(const std::string& path); | 511 std::string PathToLocalResource(const std::string& path); |
| 512 | 512 |
| 513 // Sets the permission's |name| to |value| for a given {origin, embedder} | 513 // Sets the permission's |name| to |value| for a given {origin, embedder} |
| 514 // tuple. | 514 // tuple. |
| 515 void SetPermission(const std::string& name, | 515 void SetPermission(const std::string& name, |
| 516 const std::string& value, | 516 const std::string& value, |
| 517 const GURL& origin, | 517 const GURL& origin, |
| 518 const GURL& embedding_origin); | 518 const GURL& embedding_origin); |
| 519 | 519 |
| 520 // Resolve the beforeinstallprompt event with the matching request id. | 520 // Resolve the in-flight beforeinstallprompt event. |
| 521 void ResolveBeforeInstallPromptPromise(int request_id, | 521 void ResolveBeforeInstallPromptPromise(const std::string& platform); |
| 522 const std::string& platform); | |
| 523 | 522 |
| 524 // Calls setlocale(LC_ALL, ...) for a specified locale. | 523 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 525 // Resets between tests. | 524 // Resets between tests. |
| 526 void SetPOSIXLocale(const std::string& locale); | 525 void SetPOSIXLocale(const std::string& locale); |
| 527 | 526 |
| 528 // MIDI function to control permission handling. | 527 // MIDI function to control permission handling. |
| 529 void SetMIDIAccessorResult(bool result); | 528 void SetMIDIAccessorResult(bool result); |
| 530 | 529 |
| 531 // Simulates a click on a Web Notification. | 530 // Simulates a click on a Web Notification. |
| 532 void SimulateWebNotificationClick(const std::string& title, int action_index); | 531 void SimulateWebNotificationClick(const std::string& title, int action_index); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 blink::WebEffectiveConnectionType effective_connection_type_; | 655 blink::WebEffectiveConnectionType effective_connection_type_; |
| 657 | 656 |
| 658 base::WeakPtrFactory<TestRunner> weak_factory_; | 657 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 659 | 658 |
| 660 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 659 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 661 }; | 660 }; |
| 662 | 661 |
| 663 } // namespace test_runner | 662 } // namespace test_runner |
| 664 | 663 |
| 665 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 664 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |