Skip to content

Commit 37c293c

Browse files
authored
Merge pull request #130 from dibenede/move-tests
Move test protos into protos directory
2 parents a428c58 + ba89a27 commit 37c293c

24 files changed

+43
-43
lines changed

binary/proto_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ goog.require('goog.testing.asserts');
3535
goog.require('jspb.BinaryWriter');
3636
goog.require('jspb.Message');
3737

38-
// CommonJS-LoadFromFile: ../testbinary_pb proto.jspb.test
38+
// CommonJS-LoadFromFile: ../protos/testbinary_pb proto.jspb.test
3939
goog.require('proto.jspb.test.ExtendsWithMessage');
4040
goog.require('proto.jspb.test.ForeignEnum');
4141
goog.require('proto.jspb.test.ForeignMessage');

commonjs/strict_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ var global = Function('return this')();
3939
// Bring asserts into the global namespace.
4040
googleProtobuf.object.extend(global, asserts);
4141

42-
var test9_pb = require('./test9_pb');
43-
var test10_pb = require('./test10_pb');
42+
var test9_pb = require('./protos/test9_pb');
43+
var test10_pb = require('./protos/test10_pb');
4444

4545
describe('Strict test suite', function() {
4646
it('testImportedMessage', function() {

gulpfile.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@ var wellKnownTypes = [
2929
wellKnownTypes.forEach((path, i) => protocInc + '/' + path);
3030

3131
var group1Protos = [
32-
'data.proto',
33-
'test3.proto',
34-
'test5.proto',
32+
'protos/data.proto',
33+
'protos/test3.proto',
34+
'protos/test5.proto',
3535
'commonjs/test6/test6.proto',
36-
'test8.proto',
37-
'test11.proto',
38-
'test12.proto',
39-
'test13.proto',
40-
'test14.proto',
41-
'test15.proto',
42-
'testbinary.proto',
43-
'testempty.proto',
44-
'test.proto',
45-
'testlargenumbers.proto',
36+
'protos/test8.proto',
37+
'protos/test11.proto',
38+
'protos/test12.proto',
39+
'protos/test13.proto',
40+
'protos/test14.proto',
41+
'protos/test15.proto',
42+
'protos/testbinary.proto',
43+
'protos/testempty.proto',
44+
'protos/test.proto',
45+
'protos/testlargenumbers.proto',
4646
];
4747

4848
var group2Protos = [
49-
'proto3_test.proto',
50-
'test2.proto',
51-
'test4.proto',
49+
'protos/proto3_test.proto',
50+
'protos/test2.proto',
51+
'protos/test4.proto',
5252
'commonjs/test7/test7.proto',
5353
];
5454

5555
var group3Protos = [
56-
'test9.proto',
57-
'test10.proto'
56+
'protos/test9.proto',
57+
'protos/test10.proto'
5858
];
5959

6060
function make_exec_logging_callback(cb) {

maps_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
goog.require('goog.testing.asserts');
3232
goog.require('goog.userAgent');
3333

34-
// CommonJS-LoadFromFile: testbinary_pb proto.jspb.test
34+
// CommonJS-LoadFromFile: protos/testbinary_pb proto.jspb.test
3535
goog.require('proto.jspb.test.MapValueEnum');
3636
goog.require('proto.jspb.test.MapValueMessage');
3737
goog.require('proto.jspb.test.TestMapFields');
@@ -49,7 +49,7 @@ goog.require('proto.jspb.test.MapEntryOptionalValuesDoubleValue');
4949
goog.require('proto.jspb.test.MapEntryOptionalValuesEnumValue');
5050
goog.require('proto.jspb.test.MapEntryOptionalValuesMessageValue');
5151

52-
// CommonJS-LoadFromFile: test_pb proto.jspb.test
52+
// CommonJS-LoadFromFile: protos/test_pb proto.jspb.test
5353
goog.require('proto.jspb.test.MapValueMessageNoBinary');
5454
goog.require('proto.jspb.test.TestMapFieldsNoBinary');
5555

message_test.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ goog.require('goog.testing.PropertyReplacer');
3636
goog.require('goog.testing.asserts');
3737
goog.require('goog.userAgent');
3838

39-
// CommonJS-LoadFromFile: google-protobuf jspb
39+
// CommonJS-LoadFromFile: protos/google-protobuf jspb
4040
goog.require('jspb.Message');
4141

42-
// CommonJS-LoadFromFile: test15_pb proto.jspb.filenametest.package1
42+
// CommonJS-LoadFromFile: protos/test15_pb proto.jspb.filenametest.package1
4343
goog.require('proto.jspb.filenametest.package1.b');
4444

45-
// CommonJS-LoadFromFile: test14_pb proto.jspb.filenametest.package2
45+
// CommonJS-LoadFromFile: protos/test14_pb proto.jspb.filenametest.package2
4646
goog.require('proto.jspb.filenametest.package2.TestMessage');
4747

48-
// CommonJS-LoadFromFile: test13_pb proto.jspb.filenametest.package1
48+
// CommonJS-LoadFromFile: protos/test13_pb proto.jspb.filenametest.package1
4949
goog.require('proto.jspb.filenametest.package1.a');
5050
goog.require('proto.jspb.filenametest.package1.TestMessage');
5151

52-
// CommonJS-LoadFromFile: test12_pb proto.jspb.circulartest
52+
// CommonJS-LoadFromFile: protos/test12_pb proto.jspb.circulartest
5353
goog.require('proto.jspb.circulartest.ExtensionContainingType1');
5454
goog.require('proto.jspb.circulartest.ExtensionContainingType2');
5555
goog.require('proto.jspb.circulartest.ExtensionField1');
@@ -66,25 +66,25 @@ goog.require('proto.jspb.circulartest.NestedMessage2');
6666
goog.require('proto.jspb.circulartest.RepeatedMessageField1');
6767
goog.require('proto.jspb.circulartest.RepeatedMessageField2');
6868

69-
// CommonJS-LoadFromFile: test11_pb proto.jspb.exttest.reverse
69+
// CommonJS-LoadFromFile: protos/test11_pb proto.jspb.exttest.reverse
7070
goog.require('proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage1');
7171
goog.require('proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage2');
7272
goog.require('proto.jspb.exttest.reverse.c');
7373

74-
// CommonJS-LoadFromFile: test8_pb proto.jspb.exttest.nested
74+
// CommonJS-LoadFromFile: protos/test8_pb proto.jspb.exttest.nested
7575
goog.require('proto.jspb.exttest.nested.TestNestedExtensionsMessage');
7676
goog.require('proto.jspb.exttest.nested.TestOuterMessage');
7777

78-
// CommonJS-LoadFromFile: test5_pb proto.jspb.exttest.beta
78+
// CommonJS-LoadFromFile: protos/test5_pb proto.jspb.exttest.beta
7979
goog.require('proto.jspb.exttest.beta.floatingStrField');
8080

81-
// CommonJS-LoadFromFile: test3_pb proto.jspb.exttest
81+
// CommonJS-LoadFromFile: protos/test3_pb proto.jspb.exttest
8282
goog.require('proto.jspb.exttest.floatingMsgField');
8383

84-
// CommonJS-LoadFromFile: test4_pb proto.jspb.exttest
84+
// CommonJS-LoadFromFile: protos/test4_pb proto.jspb.exttest
8585
goog.require('proto.jspb.exttest.floatingMsgFieldTwo');
8686

87-
// CommonJS-LoadFromFile: test_pb proto.jspb.test
87+
// CommonJS-LoadFromFile: protos/test_pb proto.jspb.test
8888
goog.require('proto.jspb.test.BooleanFields');
8989
goog.require('proto.jspb.test.CloneExtension');
9090
goog.require('proto.jspb.test.Complex');
@@ -113,12 +113,12 @@ goog.require('proto.jspb.test.TestMessageWithOneof');
113113
goog.require('proto.jspb.test.TestReservedNames');
114114
goog.require('proto.jspb.test.TestReservedNamesExtension');
115115

116-
// CommonJS-LoadFromFile: test2_pb proto.jspb.test
116+
// CommonJS-LoadFromFile: protos/test2_pb proto.jspb.test
117117
goog.require('proto.jspb.test.ExtensionMessage');
118118
goog.require('proto.jspb.test.TestExtensionsMessage');
119119

120120
goog.require('proto.jspb.test.TestAllowAliasEnum');
121-
// CommonJS-LoadFromFile: testlargenumbers_pb proto.jspb.test
121+
// CommonJS-LoadFromFile: protos/testlargenumbers_pb proto.jspb.test
122122
goog.require('proto.jspb.test.MessageWithLargeFieldNumbers');
123123

124124
goog.require('proto.jspb.test.simple1');

proto3_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
goog.require('goog.crypt.base64');
3232
goog.require('goog.testing.asserts');
33-
// CommonJS-LoadFromFile: testbinary_pb proto.jspb.test
33+
// CommonJS-LoadFromFile: protos/testbinary_pb proto.jspb.test
3434
goog.require('proto.jspb.test.ForeignMessage');
35-
// CommonJS-LoadFromFile: proto3_test_pb proto.jspb.test
35+
// CommonJS-LoadFromFile: protos/proto3_test_pb proto.jspb.test
3636
goog.require('proto.jspb.test.Proto3Enum');
3737
goog.require('proto.jspb.test.TestProto3');
3838
// CommonJS-LoadFromFile: google/protobuf/any_pb proto.google.protobuf
File renamed without changes.

proto3_test.proto renamed to protos/proto3_test.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax = "proto3";
3232

3333
package jspb.test;
3434

35-
import "testbinary.proto";
35+
import "protos/testbinary.proto";
3636

3737
message TestProto3 {
3838
int32 singular_int32 = 1;
File renamed without changes.

test10.proto renamed to protos/test10.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax = "proto3";
3232

3333
package jspb.exttest.strict.ten;
3434

35-
import "test9.proto";
35+
import "protos/test9.proto";
3636

3737
message Simple10 {
3838
jspb.exttest.strict.nine.Simple9 a = 1;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test15.proto renamed to protos/test15.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax = "proto2";
3232

3333
package jspb.filenametest.package1;
3434

35-
import "test13.proto";
35+
import "protos/test13.proto";
3636

3737
extend TestMessage {
3838
optional int32 b = 2;

test2.proto renamed to protos/test2.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax = "proto2";
3232

3333
package jspb.test;
3434

35-
import "test.proto";
35+
import "protos/test.proto";
3636

3737
option java_package = "com.google.apps.jspb.proto";
3838
option java_multiple_files = true;
File renamed without changes.

test4.proto renamed to protos/test4.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax = "proto2";
3232

3333
package jspb.exttest;
3434

35-
import "test3.proto";
35+
import "protos/test3.proto";
3636

3737
option java_package = "com.google.apps.jspb.proto";
3838
option java_multiple_files = true;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)