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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/WebKit/public/platform/WebPushClient.h" | 10 #include "third_party/WebKit/public/platform/WebPushClient.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 void SetMockSuccessValues(const std::string& end_point, | 31 void SetMockSuccessValues(const std::string& end_point, |
32 const std::string& registration_id); | 32 const std::string& registration_id); |
33 | 33 |
34 void SetMockErrorValues(const std::string& message); | 34 void SetMockErrorValues(const std::string& message); |
35 | 35 |
36 private: | 36 private: |
37 // WebPushClient implementation. | 37 // WebPushClient implementation. |
38 virtual void registerPushMessaging( | 38 virtual void registerPushMessaging( |
39 const blink::WebString& sender_id, | 39 const blink::WebString& sender_id, |
40 blink::WebPushRegistrationCallbacks* callbacks); | |
41 virtual void registerPushMessaging( | |
42 const blink::WebString& sender_id, | |
43 blink::WebPushRegistrationCallbacks* callbacks, | 40 blink::WebPushRegistrationCallbacks* callbacks, |
44 blink::WebServiceWorkerProvider* service_worker_provider); | 41 blink::WebServiceWorkerProvider* service_worker_provider); |
| 42 virtual void registerPushMessaging( |
| 43 blink::WebPushRegistrationCallbacks* callbacks, |
| 44 blink::WebServiceWorkerProvider* service_worker_provider); |
45 | 45 |
46 std::string end_point_; | 46 std::string end_point_; |
47 std::string registration_id_; | 47 std::string registration_id_; |
48 std::string error_message_; | 48 std::string error_message_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(MockWebPushClient); | 50 DISALLOW_COPY_AND_ASSIGN(MockWebPushClient); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace content | 53 } // namespace content |
54 | 54 |
55 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 55 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
OLD | NEW |