[fenix] No issue: Move Do and OpenClass to utils pkg.
[gecko.git] / mobile / android / fenix / app / src / main / java / org / mozilla / fenix / utils / OpenClass.kt
blobbcb6f59c6bf08c52d53c66733e0eca1c31b44003
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 package org.mozilla.fenix.utils
7 // Annotations for testing.
9 /**
10  * Annotate a class with [OpenClass] to open a class for mocking purposes while keeping it final in release builds
11  */
12 @Target(AnnotationTarget.ANNOTATION_CLASS)
13 annotation class OpenClass
15 /**
16  * Annotate a class with [Mockable] to make it extensible in debug builds
17  */
18 @OpenClass
19 @Target(AnnotationTarget.CLASS)
20 annotation class Mockable