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

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

Issue 1262893006: Enable testing NotificationEvent.action (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@click_actions
Patch Set: TestRunnerBindings::SimulateWebNotificationClick throws for non int index Created 5 years, 4 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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 const std::string& platform); 553 const std::string& platform);
554 554
555 // Calls setlocale(LC_ALL, ...) for a specified locale. 555 // Calls setlocale(LC_ALL, ...) for a specified locale.
556 // Resets between tests. 556 // Resets between tests.
557 void SetPOSIXLocale(const std::string& locale); 557 void SetPOSIXLocale(const std::string& locale);
558 558
559 // MIDI function to control permission handling. 559 // MIDI function to control permission handling.
560 void SetMIDIAccessorResult(bool result); 560 void SetMIDIAccessorResult(bool result);
561 561
562 // Simulates a click on a Web Notification. 562 // Simulates a click on a Web Notification.
563 void SimulateWebNotificationClick(const std::string& title); 563 void SimulateWebNotificationClick(const std::string& title, int action_index);
564 564
565 // Speech recognition related functions. 565 // Speech recognition related functions.
566 void AddMockSpeechRecognitionResult(const std::string& transcript, 566 void AddMockSpeechRecognitionResult(const std::string& transcript,
567 double confidence); 567 double confidence);
568 void SetMockSpeechRecognitionError(const std::string& error, 568 void SetMockSpeechRecognitionError(const std::string& error,
569 const std::string& message); 569 const std::string& message);
570 bool WasMockSpeechRecognitionAborted(); 570 bool WasMockSpeechRecognitionAborted();
571 571
572 // Credential Manager mock functions 572 // Credential Manager mock functions
573 // TODO(mkwst): Support FederatedCredential. 573 // TODO(mkwst): Support FederatedCredential.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 bool use_mock_theme_; 817 bool use_mock_theme_;
818 818
819 base::WeakPtrFactory<TestRunner> weak_factory_; 819 base::WeakPtrFactory<TestRunner> weak_factory_;
820 820
821 DISALLOW_COPY_AND_ASSIGN(TestRunner); 821 DISALLOW_COPY_AND_ASSIGN(TestRunner);
822 }; 822 };
823 823
824 } // namespace test_runner 824 } // namespace test_runner
825 825
826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698