diff options
author | David Gross <dgross@google.com> | 2019-07-30 12:53:58 -0700 |
---|---|---|
committer | David Gross <dgross@google.com> | 2019-07-30 12:53:58 -0700 |
commit | bd98a9f6c0f5f2e48953c67c86ddd5e82ed6d74e (patch) | |
tree | 6e18eb0f51a944e19596485fbfd16fafde5a1c56 /nn/runtime/test/fuzzing | |
parent | aa3047535a0a8bc0dd4bc92c2c51f60201ea9871 (diff) | |
download | ml-bd98a9f6c0f5f2e48953c67c86ddd5e82ed6d74e.tar.gz |
Fix names of #include guard symbols.
Subsequent discussion recommended "ANDROID_" prefix.
Pattern: ANDROID_FRAMEWORKS_ML_${RELPATH}_H, where ${RELPATH} is relative to
frameworks/ml, with "include" path component (if any) removed,
everything in caps, and word breaks indicated by underscores (rather
than by upper case). This is derived from our current practices in
frameworks/ml.
Generate name: ANDROID_FRAMEWORKS_ML_$(echo ${RELPATH} | sed -e 's!/include!!g' -e 's![/.]!_!g' -e 's!\([^_A-Z]\)\([A-Z]\)!\1_\2!g' | awk '{ print toupper($1); }')
Bug: 129138718
Test: cd frameworks/ml ; mma
Change-Id: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4
Merged-In: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4
Diffstat (limited to 'nn/runtime/test/fuzzing')
4 files changed, 12 insertions, 12 deletions
diff --git a/nn/runtime/test/fuzzing/OperationManager.h b/nn/runtime/test/fuzzing/OperationManager.h index 5046e4c76..37870014c 100644 --- a/nn/runtime/test/fuzzing/OperationManager.h +++ b/nn/runtime/test/fuzzing/OperationManager.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H -#define FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H +#ifndef ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H +#define ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H #include <functional> #include <map> @@ -127,4 +127,4 @@ class OperationManager { } // namespace nn } // namespace android -#endif // FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H +#endif // ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_MANAGER_H diff --git a/nn/runtime/test/fuzzing/RandomGraphGenerator.h b/nn/runtime/test/fuzzing/RandomGraphGenerator.h index 13cd42855..47c6d3eb5 100644 --- a/nn/runtime/test/fuzzing/RandomGraphGenerator.h +++ b/nn/runtime/test/fuzzing/RandomGraphGenerator.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H -#define FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H +#ifndef ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H +#define ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H #include <string> #include <vector> @@ -179,4 +179,4 @@ class RandomGraph { } // namespace nn } // namespace android -#endif // FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H +#endif // ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_H diff --git a/nn/runtime/test/fuzzing/RandomGraphGeneratorUtils.h b/nn/runtime/test/fuzzing/RandomGraphGeneratorUtils.h index 4301c275e..1611a4aa6 100644 --- a/nn/runtime/test/fuzzing/RandomGraphGeneratorUtils.h +++ b/nn/runtime/test/fuzzing/RandomGraphGeneratorUtils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H -#define FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H +#ifndef ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H +#define ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H #include <chrono> #include <fstream> @@ -454,4 +454,4 @@ inline void randomShuffle(std::vector<T>* vec) { } // namespace nn } // namespace android -#endif // FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H +#endif // ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_RANDOM_GRAPH_GENERATOR_UTILS_H diff --git a/nn/runtime/test/fuzzing/operation_signatures/OperationSignatureUtils.h b/nn/runtime/test/fuzzing/operation_signatures/OperationSignatureUtils.h index 43e201471..ca54c11cd 100644 --- a/nn/runtime/test/fuzzing/operation_signatures/OperationSignatureUtils.h +++ b/nn/runtime/test/fuzzing/operation_signatures/OperationSignatureUtils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H -#define FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H +#ifndef ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H +#define ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H #include <functional> #include <string> @@ -404,4 +404,4 @@ inline void defaultOperandConstructor(Type dataType, uint32_t, RandomOperand* op } // namespace nn } // namespace android -#endif // FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H +#endif // ANDROID_FRAMEWORKS_ML_NN_RUNTIME_TEST_FUZZING_OPERATION_SIGNATURES_OPERATION_SIGNATURE_UTILS_H |