1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // This file is autogenerated by 18 // java_cpp_enum.py 19 // From 20 // ../../net/test/url_request/url_request_failed_job.h 21 22 // TODO(b/275689380) 23 // genandroidbp does not correctly handle this yet as it is not a separate target in BUID.gn, 24 // so manually adding it here till that is fixed. 25 26 package org.chromium.net.test; 27 28 import androidx.annotation.IntDef; 29 30 import java.lang.annotation.Retention; 31 import java.lang.annotation.RetentionPolicy; 32 33 @IntDef({ 34 FailurePhase.START, FailurePhase.READ_SYNC, FailurePhase.READ_ASYNC, 35 FailurePhase.MAX_FAILURE_PHASE 36 }) 37 @Retention(RetentionPolicy.SOURCE) 38 public @interface FailurePhase { 39 int START = 0; 40 int READ_SYNC = 1; 41 int READ_ASYNC = 2; 42 int MAX_FAILURE_PHASE = 3; 43 } 44