Home
last modified time | relevance | path

Searched refs:mockParent (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DSingleFieldBuilderTest.java48 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUseAndInvalidations() local
54 mockParent, in testBasicUseAndInvalidations()
59 assertEquals(0, mockParent.getInvalidationCount()); in testBasicUseAndInvalidations()
62 assertEquals(0, mockParent.getInvalidationCount()); in testBasicUseAndInvalidations()
67 assertEquals(0, mockParent.getInvalidationCount()); in testBasicUseAndInvalidations()
69 assertEquals(1, mockParent.getInvalidationCount()); in testBasicUseAndInvalidations()
73 assertEquals(1, mockParent.getInvalidationCount()); in testBasicUseAndInvalidations()
78 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testSetMessage() local
84 mockParent, in testSetMessage()
91 assertEquals(0, mockParent.getInvalidationCount()); in testSetMessage()
[all …]
DRepeatedFieldBuilderTest.java51 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUse() local
53 TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); in testBasicUse()
68 assertEquals(0, mockParent.getInvalidationCount()); in testBasicUse()
72 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testGoingBackAndForth() local
74 TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); in testGoingBackAndForth()
88 assertEquals(0, mockParent.getInvalidationCount()); in testGoingBackAndForth()
90 assertEquals(1, mockParent.getInvalidationCount()); in testGoingBackAndForth()
97 assertEquals(1, mockParent.getInvalidationCount()); in testGoingBackAndForth()
101 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testVariousMethods() local
103 TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); in testVariousMethods()
[all …]
DGeneratedMessageTest.java972 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testInvalidations() local
976 newBuilderForType(mockParent); in testInvalidations()
983 assertEquals(0, mockParent.getInvalidationCount()); in testInvalidations()
992 assertEquals(1, mockParent.getInvalidationCount()); in testInvalidations()
998 assertEquals(2, mockParent.getInvalidationCount()); in testInvalidations()
1004 assertEquals(3, mockParent.getInvalidationCount()); in testInvalidations()
1010 assertEquals(4, mockParent.getInvalidationCount()); in testInvalidations()
1016 assertEquals(5, mockParent.getInvalidationCount()); in testInvalidations()
1022 assertEquals(6, mockParent.getInvalidationCount()); in testInvalidations()
1027 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testInvalidations_Extensions() local
[all …]