/*
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef JNI_BIND_JAVATESTS_COM_JNIBIND_TEST_H
#define JNI_BIND_JAVATESTS_COM_JNIBIND_TEST_H

#include "jni_bind.h"

// clang-format off
constexpr jni::Class kObjectClass {
    "java/lang/Object"
};

constexpr jni::Class kObjectTestHelperClass {
    "com/jnibind/test/ObjectTestHelper",

  ::jni::Constructor<>{},
  ::jni::Constructor{kObjectClass},
  ::jni::Constructor<int>{},
  ::jni::Constructor<int, int, int>{},

   ::jni::Method{"returnNewObjectWithFieldSetToSum",
     ::jni::Overload{
        ::jni::Return{jni::Class{"com/jnibind/test/ObjectTestHelper"}},
        ::jni::Params<int, int>{}
      },
      ::jni::Overload{
        ::jni::Return{jni::Class{"com/jnibind/test/ObjectTestHelper"}},
        ::jni::Params{jni::Class{"com/jnibind/test/ObjectTestHelper"}}
      },
    },

    ::jni::Method{"foo", ::jni::Return{}, ::jni::Params{}},
    ::jni::Method{"increment", ::jni::Return{}, ::jni::Params<int>{}},
    ::jni::Method{"print", ::jni::Return{}, ::jni::Params{}},

    ::jni::Field{"intVal1", int{}},
    ::jni::Field{"intVal2", int{}},
    ::jni::Field{"intVal3", int{}}
};

// clang-format on

#endif  // JNI_BIND_JAVATESTS_COM_JNIBIND_TEST_H
