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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // Converts a URL starting with file:///tmp/ to the local mapping. 515 // Converts a URL starting with file:///tmp/ to the local mapping.
516 std::string PathToLocalResource(const std::string& path); 516 std::string PathToLocalResource(const std::string& path);
517 517
518 // Sets the permission's |name| to |value| for a given {origin, embedder} 518 // Sets the permission's |name| to |value| for a given {origin, embedder}
519 // tuple. 519 // tuple.
520 void SetPermission(const std::string& name, 520 void SetPermission(const std::string& name,
521 const std::string& value, 521 const std::string& value,
522 const GURL& origin, 522 const GURL& origin,
523 const GURL& embedding_origin); 523 const GURL& embedding_origin);
524 524
525 // Resolve the beforeinstallprompt event with the matching request id. 525 // Resolve the in-flight beforeinstallprompt event.
526 void ResolveBeforeInstallPromptPromise(int request_id, 526 void ResolveBeforeInstallPromptPromise(const std::string& platform);
527 const std::string& platform);
528 527
529 // Calls setlocale(LC_ALL, ...) for a specified locale. 528 // Calls setlocale(LC_ALL, ...) for a specified locale.
530 // Resets between tests. 529 // Resets between tests.
531 void SetPOSIXLocale(const std::string& locale); 530 void SetPOSIXLocale(const std::string& locale);
532 531
533 // MIDI function to control permission handling. 532 // MIDI function to control permission handling.
534 void SetMIDIAccessorResult(midi::mojom::Result result); 533 void SetMIDIAccessorResult(midi::mojom::Result result);
535 534
536 // Simulates a click on a Web Notification. 535 // Simulates a click on a Web Notification.
537 void SimulateWebNotificationClick(const std::string& title, 536 void SimulateWebNotificationClick(const std::string& title,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 blink::WebEffectiveConnectionType effective_connection_type_; 662 blink::WebEffectiveConnectionType effective_connection_type_;
664 663
665 base::WeakPtrFactory<TestRunner> weak_factory_; 664 base::WeakPtrFactory<TestRunner> weak_factory_;
666 665
667 DISALLOW_COPY_AND_ASSIGN(TestRunner); 666 DISALLOW_COPY_AND_ASSIGN(TestRunner);
668 }; 667 };
669 668
670 } // namespace test_runner 669 } // namespace test_runner
671 670
672 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 671 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698