Kevin McNee | 5994d73 | 2025-03-26 15:55:37 | [diff] [blame] | 1 | // Copyright 2025 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_ACTOR_ACTOR_TEST_UTIL_H_ |
| 6 | #define CHROME_BROWSER_ACTOR_ACTOR_TEST_UTIL_H_ |
| 7 | |
Jason Chase | c037459e | 2025-04-09 00:53:44 | [diff] [blame^] | 8 | #include <string_view> |
| 9 | |
Kevin McNee | 5994d73 | 2025-03-26 15:55:37 | [diff] [blame] | 10 | #include "components/optimization_guide/proto/features/actions_data.pb.h" |
| 11 | |
| 12 | namespace actor { |
| 13 | |
Lan Wei | 4bf7d0b | 2025-04-08 21:59:11 | [diff] [blame] | 14 | inline constexpr char kActorTestDataPath[] = "chrome/test/data/actor"; |
David Bokan | a7da067 | 2025-04-01 02:51:41 | [diff] [blame] | 15 | |
Kevin McNee | 5994d73 | 2025-03-26 15:55:37 | [diff] [blame] | 16 | optimization_guide::proto::BrowserAction MakeClick(int content_node_id); |
David Bokan | a7da067 | 2025-04-01 02:51:41 | [diff] [blame] | 17 | optimization_guide::proto::BrowserAction MakeHistoryBack(); |
| 18 | optimization_guide::proto::BrowserAction MakeHistoryForward(); |
Rodney Ding | a8548d5 | 2025-04-01 13:03:59 | [diff] [blame] | 19 | optimization_guide::proto::BrowserAction MakeMouseMove(int content_node_id); |
Jason Chase | c037459e | 2025-04-09 00:53:44 | [diff] [blame^] | 20 | optimization_guide::proto::BrowserAction MakeNavigate( |
| 21 | std::string_view target_url); |
Rodney Ding | 182593f9 | 2025-04-08 18:33:13 | [diff] [blame] | 22 | optimization_guide::proto::BrowserAction MakeType(int content_node_id, |
| 23 | std::string_view text, |
| 24 | bool follow_by_enter); |
Lan Wei | 4bf7d0b | 2025-04-08 21:59:11 | [diff] [blame] | 25 | optimization_guide::proto::BrowserAction MakeScroll( |
| 26 | std::optional<int> content_node_id, |
| 27 | float scroll_offset_x, |
| 28 | float scroll_offset_y); |
Kevin McNee | 5994d73 | 2025-03-26 15:55:37 | [diff] [blame] | 29 | |
| 30 | } // namespace actor |
| 31 | |
| 32 | #endif // CHROME_BROWSER_ACTOR_ACTOR_TEST_UTIL_H_ |