Skip to content

Commit

Permalink
Change TypeDef to Typedef
Browse files Browse the repository at this point in the history
Summary: Typedef is one word

Reviewed By: thezhangwei

Differential Revision: D48790259

fbshipit-source-id: c099d9f99ffa854260feb2c6f8a04b4da8f45a54
  • Loading branch information
itang00 authored and facebook-github-bot committed Aug 29, 2023
1 parent 9413fc0 commit 10d992e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions test/integ/TypeDefAnnoTest.cpp → test/integ/TypedefAnnosTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "RedexTest.h"
#include "TypeInference.h"

struct TypeDefAnnoTest : public RedexIntegrationTest {
struct TypedefAnnosTest : public RedexIntegrationTest {
cfg::ControlFlowGraph& get_cfg(DexMethod* method) {
auto code = method->get_code();
code->build_cfg(/* editable */ false);
Expand All @@ -30,10 +30,10 @@ struct TypeDefAnnoTest : public RedexIntegrationTest {
}
};

TEST_F(TypeDefAnnoTest, test_anno_load_param_object) {
TEST_F(TypedefAnnosTest, test_anno_load_param_object) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testAnnoObject:(Lcom/facebook/redextest/"
"TypedefAnnosTest;.testAnnoObject:(Lcom/facebook/redextest/"
"I;)Lcom/facebook/redextest/I;")
->as_def();
auto& cfg = get_cfg(method);
Expand All @@ -49,10 +49,10 @@ TEST_F(TypeDefAnnoTest, test_anno_load_param_object) {
}
}

TEST_F(TypeDefAnnoTest, test_int_anno_load_param) {
TEST_F(TypedefAnnosTest, test_int_anno_load_param) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testIntAnnoParam:(I)I")
"TypedefAnnosTest;.testIntAnnoParam:(I)I")
->as_def();
auto& cfg = get_cfg(method);
const auto& val = get_annotation_set();
Expand All @@ -67,10 +67,10 @@ TEST_F(TypeDefAnnoTest, test_int_anno_load_param) {
}
}

TEST_F(TypeDefAnnoTest, test_anno_invoke_static) {
TEST_F(TypedefAnnosTest, test_anno_invoke_static) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testAnnoInvokeStatic:(Lcom/facebook/"
"TypedefAnnosTest;.testAnnoInvokeStatic:(Lcom/facebook/"
"redextest/"
"I;)Lcom/facebook/redextest/I;")
->as_def();
Expand All @@ -87,10 +87,10 @@ TEST_F(TypeDefAnnoTest, test_anno_invoke_static) {
}
}

TEST_F(TypeDefAnnoTest, test_int_anno_invoke_static) {
TEST_F(TypedefAnnosTest, test_int_anno_invoke_static) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testIntAnnoInvokeStatic:(I)I")
"TypedefAnnosTest;.testIntAnnoInvokeStatic:(I)I")
->as_def();
auto& cfg = get_cfg(method);
const auto& val = get_annotation_set();
Expand All @@ -105,10 +105,10 @@ TEST_F(TypeDefAnnoTest, test_int_anno_invoke_static) {
}
}

TEST_F(TypeDefAnnoTest, test_string_anno_load_parm) {
TEST_F(TypedefAnnosTest, test_string_anno_load_parm) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testStringAnnoParam:(Ljava/lang/"
"TypedefAnnosTest;.testStringAnnoParam:(Ljava/lang/"
"String;)Ljava/lang/String;")
->as_def();
auto& cfg = get_cfg(method);
Expand All @@ -124,10 +124,10 @@ TEST_F(TypeDefAnnoTest, test_string_anno_load_parm) {
}
}

TEST_F(TypeDefAnnoTest, test_string_anno_invoke_static) {
TEST_F(TypedefAnnosTest, test_string_anno_invoke_static) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testStringAnnoInvokeStatic:(Ljava/lang/"
"TypedefAnnosTest;.testStringAnnoInvokeStatic:(Ljava/lang/"
"String;)Ljava/lang/String;")
->as_def();
auto& cfg = get_cfg(method);
Expand All @@ -143,10 +143,10 @@ TEST_F(TypeDefAnnoTest, test_string_anno_invoke_static) {
}
}

TEST_F(TypeDefAnnoTest, test_no_anno_inference) {
TEST_F(TypedefAnnosTest, test_no_anno_inference) {
auto method = DexMethod::get_method(
"Lcom/facebook/redextest/"
"TypeDefAnnoTest;.testAnnoObject:(Lcom/facebook/redextest/"
"TypedefAnnosTest;.testAnnoObject:(Lcom/facebook/redextest/"
"I;)Lcom/facebook/redextest/I;")
->as_def();
auto& cfg = get_cfg(method);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface I {
int get();
}

public class TypeDefAnnoTest {
public class TypedefAnnosTest {
// test that TypeInference can correctly parse through all the parameter annotations
static @NotSafeAnno @TestIntDef int testIntAnnoParam(@NotSafeAnno @TestIntDef int val) {
return val;
Expand Down

0 comments on commit 10d992e

Please sign in to comment.