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

Side by Side Diff: components/test_runner/test_runner.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Rebase Created 4 years, 2 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698