File: atspi_in_process_fuzzer.proto

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (76 lines) | stat: -rw-r--r-- 1,683 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto3";
package test.fuzzing.atspi_fuzzing;

// A fuzzer case for atspi_in_process_fuzzer.cc.
message FuzzCase {
  // Actions to take.
  repeated Action action = 1;
}

// Actions to take
message Action {
  // The path to the control with which we want to interact.
  // e.g. [Chrome] -> [3rd panel] -> [2nd panel] -> [Maximize]
  // Wherever controls have names, we use them, for maximal
  // stability across Chromium versions.
  ControlPath path_to_control = 1;

  ActionVerb verb = 2;
}

message ActionVerb {
  oneof action_choice {
    // Take an "action" in an ATSPI sense, e.g. click a button
    TakeAction take_action = 1;

    // Edit some text.
    ReplaceText replace_text = 2;

    // Select items from a list.
    SetSelection set_selection = 3;
  }

  message TakeAction {
    uint32 action_id = 1;
  }

  message ReplaceText {
    string new_text = 1;
  }

  message SetSelection {
    repeated uint32 selected_child = 1;
  }
}

message ControlPath {
  repeated PathElement path_to_control = 1;
}

message PathElement {
  oneof element_type {
    // The element has a name.
    Named named = 1;

    // The element does not have a name.
    Anonymous anonymous = 2;
  }

  message Named {
    // A named control
    string name = 1;
  }

  message Anonymous {
    // The control's "role", e.g. "panel". Everything has one.
    string role = 1;

    // This is the nth anonymous "role", e.g. the third anonymous panel.
    // This should be slightly more stable than a plain ordinal.
    uint32 ordinal = 2;
  }
}