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

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

Issue 1656823002: Add layout tests for ServiceWorker's notificationclose event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored data reflection tests + nits Created 4 years, 10 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
« no previous file with comments | « components/html_viewer/web_test_delegate_impl.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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 // Calls setlocale(LC_ALL, ...) for a specified locale. 583 // Calls setlocale(LC_ALL, ...) for a specified locale.
584 // Resets between tests. 584 // Resets between tests.
585 void SetPOSIXLocale(const std::string& locale); 585 void SetPOSIXLocale(const std::string& locale);
586 586
587 // MIDI function to control permission handling. 587 // MIDI function to control permission handling.
588 void SetMIDIAccessorResult(bool result); 588 void SetMIDIAccessorResult(bool result);
589 589
590 // Simulates a click on a Web Notification. 590 // Simulates a click on a Web Notification.
591 void SimulateWebNotificationClick(const std::string& title, int action_index); 591 void SimulateWebNotificationClick(const std::string& title, int action_index);
592 592
593 // Simulates closing a Web Notification.
594 void SimulateWebNotificationClose(const std::string& title, bool by_user);
595
593 // Speech recognition related functions. 596 // Speech recognition related functions.
594 void AddMockSpeechRecognitionResult(const std::string& transcript, 597 void AddMockSpeechRecognitionResult(const std::string& transcript,
595 double confidence); 598 double confidence);
596 void SetMockSpeechRecognitionError(const std::string& error, 599 void SetMockSpeechRecognitionError(const std::string& error,
597 const std::string& message); 600 const std::string& message);
598 bool WasMockSpeechRecognitionAborted(); 601 bool WasMockSpeechRecognitionAborted();
599 602
600 // Credential Manager mock functions 603 // Credential Manager mock functions
601 // TODO(mkwst): Support FederatedCredential. 604 // TODO(mkwst): Support FederatedCredential.
602 void AddMockCredentialManagerResponse(const std::string& id, 605 void AddMockCredentialManagerResponse(const std::string& id,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 bool use_mock_theme_; 847 bool use_mock_theme_;
845 848
846 base::WeakPtrFactory<TestRunner> weak_factory_; 849 base::WeakPtrFactory<TestRunner> weak_factory_;
847 850
848 DISALLOW_COPY_AND_ASSIGN(TestRunner); 851 DISALLOW_COPY_AND_ASSIGN(TestRunner);
849 }; 852 };
850 853
851 } // namespace test_runner 854 } // namespace test_runner
852 855
853 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 856 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/html_viewer/web_test_delegate_impl.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698