Compare commits
137 commits
Author | SHA1 | Date | |
---|---|---|---|
|
bda4bb9068 | ||
|
bd5ab154da | ||
|
6bd51a59df | ||
|
e264b20e69 | ||
|
b30dee3ea6 | ||
|
cdd524a0bd | ||
|
62d7fe5697 | ||
|
ecca6ea95d | ||
|
5a52b3588d | ||
|
e55782fa95 | ||
|
176bac6dac | ||
|
12acbc2678 | ||
|
097bfb53d1 | ||
|
dd7265e1a2 | ||
|
e3c807d4e7 | ||
|
1a7e49d462 | ||
|
9c0b35cf62 | ||
|
f752d816b7 | ||
|
d07efbad91 | ||
|
eca0f4ee91 | ||
|
db45687a38 | ||
|
703cd8e11c | ||
|
1325588982 | ||
|
c2fdef05cf | ||
|
73b7cc0007 | ||
|
5fd71ce631 | ||
|
72e293a28f | ||
|
8f367c0b2d | ||
|
5729cf77f6 | ||
|
dd19b876d4 | ||
|
710543d915 | ||
|
491b32041d | ||
|
888e287e3b | ||
|
4b36d4006b | ||
|
36e63da632 | ||
|
d0e6f3b9ab | ||
|
91bf623aa1 | ||
|
8d97b3d8b5 | ||
|
b9b34e9b11 | ||
|
09d2994b1f | ||
|
6ecf38f427 | ||
|
c722c3d294 | ||
|
9094bf0f7e | ||
|
9ba7d1c038 | ||
|
96095f3a85 | ||
|
c202b06de9 | ||
|
0871e6a808 | ||
|
d4d41af19b | ||
|
6156af10e8 | ||
|
d555775836 | ||
|
2aeb4ab9c7 | ||
|
ddbe36003e | ||
|
1d0988b8ef | ||
|
516a81a424 | ||
|
ecc0f54127 | ||
|
656dedbf07 | ||
|
6f325805c0 | ||
|
df3f8cf6dd | ||
|
0336770801 | ||
|
e9c15d601e | ||
|
fbaad3617f | ||
|
63a97289dc | ||
|
46f36d79a2 | ||
|
ea43e0c5e8 | ||
|
0b059a3d8a | ||
|
a183a0df61 | ||
|
faa53989cb | ||
|
ae85cb8ef3 | ||
|
d6470abef1 | ||
|
e222997c5b | ||
|
1e86ef4e9f | ||
|
282fb9e68e | ||
|
4d5daf4ef9 | ||
|
4eb02fe31e | ||
|
4674cc7c07 | ||
|
95749d5af6 | ||
|
0b07d7eb9e | ||
|
f26e8c2ae0 | ||
|
40da1ed572 | ||
|
ba987a7e2d | ||
|
c5125f371d | ||
|
d2c1865374 | ||
|
2465ae7e23 | ||
|
677557009c | ||
|
979107ec7a | ||
|
3b227611d5 | ||
|
8546620610 | ||
|
49e4ba6098 | ||
|
b28617b813 | ||
|
78cb804063 | ||
|
ad203bcb2b | ||
|
82e50ba5c3 | ||
|
455b61c6b0 | ||
|
25abd7b7e7 | ||
|
cd0efc0024 | ||
|
483396068d | ||
|
f00e06c95b | ||
|
a64497c709 | ||
|
bcb3506641 | ||
|
2f4489a3e5 | ||
|
286f059842 | ||
|
9053033a50 | ||
|
067b1eec3b | ||
|
07c284f86c | ||
|
cbd08cb7d1 | ||
|
54d1701f6c | ||
|
7c76ac1735 | ||
|
b1c75bc742 | ||
|
4920e27a48 | ||
|
4777574a6c | ||
|
14afc3fd41 | ||
|
f85eecb585 | ||
|
357afc39de | ||
|
0a93f67055 | ||
|
594f810081 | ||
|
3055a02125 | ||
|
a3873cafae | ||
|
f5a01d1bbd | ||
|
2240a785f9 | ||
|
8aa927f08f | ||
|
bf483dfb99 | ||
|
efec757104 | ||
|
69bfde22b6 | ||
|
09328db1ff | ||
|
139fd0a1c5 | ||
|
37c7b766b3 | ||
|
662f97841e | ||
|
cc3fa2ec80 | ||
|
10ea25133d | ||
|
7e5f980508 | ||
|
dd04ffb923 | ||
|
58373fa160 | ||
|
11c902ea2e | ||
|
c348d46a9b | ||
|
aec0711075 | ||
|
008dc92c9d | ||
|
ef61a9d313 |
69 changed files with 111 additions and 308 deletions
1
BUILD
1
BUILD
|
@ -128,7 +128,6 @@ cc_library(
|
|||
"src/google/protobuf/extension_set_heavy.cc",
|
||||
"src/google/protobuf/field_mask.pb.cc",
|
||||
"src/google/protobuf/generated_message_reflection.cc",
|
||||
"src/google/protobuf/generated_message_table_driven.cc",
|
||||
"src/google/protobuf/io/gzip_stream.cc",
|
||||
"src/google/protobuf/io/printer.cc",
|
||||
"src/google/protobuf/io/strtod.cc",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# dependent projects use the :git notation to refer to the library.
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'Protobuf'
|
||||
s.version = '3.3.2'
|
||||
s.version = '3.3.0'
|
||||
s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
|
||||
s.homepage = 'https://github.com/google/protobuf'
|
||||
s.license = '3-Clause BSD License'
|
||||
|
|
|
@ -50,7 +50,6 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\field_mask.pb.h" incl
|
|||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_enum_reflection.h" include\google\protobuf\generated_enum_reflection.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_enum_util.h" include\google\protobuf\generated_enum_util.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_reflection.h" include\google\protobuf\generated_message_reflection.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_table_driven.h" include\google\protobuf\generated_message_table_driven.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\generated_message_util.h" include\google\protobuf\generated_message_util.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\has_bits.h" include\google\protobuf\has_bits.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\io\coded_stream.h" include\google\protobuf\io\coded_stream.h
|
||||
|
@ -71,7 +70,6 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\map_type_handler.h" i
|
|||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\message.h" include\google\protobuf\message.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\message_lite.h" include\google\protobuf\message_lite.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\metadata.h" include\google\protobuf\metadata.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\metadata_lite.h" include\google\protobuf\metadata_lite.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\reflection.h" include\google\protobuf\reflection.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\reflection_ops.h" include\google\protobuf\reflection_ops.h
|
||||
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\repeated_field.h" include\google\protobuf\repeated_field.h
|
||||
|
|
|
@ -13,7 +13,6 @@ set(libprotobuf_files
|
|||
${protobuf_source_dir}/src/google/protobuf/extension_set_heavy.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/field_mask.pb.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/generated_message_reflection.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/generated_message_table_driven.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/io/gzip_stream.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/io/printer.cc
|
||||
${protobuf_source_dir}/src/google/protobuf/io/strtod.cc
|
||||
|
|
|
@ -17,7 +17,7 @@ AC_PREREQ(2.59)
|
|||
# In the SVN trunk, the version should always be the next anticipated release
|
||||
# version with the "-pre" suffix. (We used to use "-SNAPSHOT" but this pushed
|
||||
# the size of one file name in the dist tarfile over the 99-char limit.)
|
||||
AC_INIT([Protocol Buffers],[3.3.2],[protobuf@googlegroups.com],[protobuf])
|
||||
AC_INIT([Protocol Buffers],[3.3.0],[protobuf@googlegroups.com],[protobuf])
|
||||
|
||||
AM_MAINTAINER_MODE([enable])
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<title>Google Protocol Buffers tools</title>
|
||||
<summary>Tools for Protocol Buffers - Google's data interchange format.</summary>
|
||||
<description>See project site for more info.</description>
|
||||
<version>3.3.2</version>
|
||||
<version>3.3.0</version>
|
||||
<authors>Google Inc.</authors>
|
||||
<owners>protobuf-packages</owners>
|
||||
<licenseUrl>https://github.com/google/protobuf/blob/master/LICENSE</licenseUrl>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "3.3.2",
|
||||
"version": "3.3.0",
|
||||
"title": "Google Protocol Buffers",
|
||||
"description": "See project site for more info.",
|
||||
"authors": [ "Google Inc." ],
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-parent</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<version>3.3.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>protobuf-java</artifactId>
|
||||
|
@ -34,6 +34,11 @@
|
|||
<artifactId>easymockclassextension</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.truth</groupId>
|
||||
<artifactId>truth</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
package com.google.protobuf;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import com.google.protobuf.Descriptors.Descriptor;
|
||||
import com.google.protobuf.Descriptors.FieldDescriptor;
|
||||
import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy;
|
||||
|
@ -1077,12 +1079,12 @@ public class TextFormatTest extends TestCase {
|
|||
{
|
||||
TestMap.Builder dest = TestMap.newBuilder();
|
||||
TextFormat.merge(text, dest);
|
||||
assertEquals(message, dest.build());
|
||||
assertThat(dest.build()).isEqualTo(message);
|
||||
}
|
||||
{
|
||||
TestMap.Builder dest = TestMap.newBuilder();
|
||||
parserWithOverwriteForbidden.merge(text, dest);
|
||||
assertEquals(message, dest.build());
|
||||
assertThat(dest.build()).isEqualTo(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1094,10 +1096,10 @@ public class TextFormatTest extends TestCase {
|
|||
TestMap.Builder dest = TestMap.newBuilder();
|
||||
parserWithOverwriteForbidden.merge(text, dest);
|
||||
TestMap message = dest.build();
|
||||
assertEquals(2, message.getStringToInt32Field().size());
|
||||
assertEquals(2, message.getInt32ToMessageField().size());
|
||||
assertEquals(10, message.getStringToInt32Field().get("x").intValue());
|
||||
assertEquals(200, message.getInt32ToMessageField().get(2).getValue());
|
||||
assertThat(message.getStringToInt32Field().size()).isEqualTo(2);
|
||||
assertThat(message.getInt32ToMessageField().size()).isEqualTo(2);
|
||||
assertThat(message.getStringToInt32Field().get("x")).isEqualTo(10);
|
||||
assertThat(message.getInt32ToMessageField().get(2).getValue()).isEqualTo(200);
|
||||
}
|
||||
|
||||
public void testMapShortFormEmpty() throws Exception {
|
||||
|
@ -1106,8 +1108,8 @@ public class TextFormatTest extends TestCase {
|
|||
TestMap.Builder dest = TestMap.newBuilder();
|
||||
parserWithOverwriteForbidden.merge(text, dest);
|
||||
TestMap message = dest.build();
|
||||
assertEquals(0, message.getStringToInt32Field().size());
|
||||
assertEquals(0, message.getInt32ToMessageField().size());
|
||||
assertThat(message.getStringToInt32Field().size()).isEqualTo(0);
|
||||
assertThat(message.getInt32ToMessageField().size()).isEqualTo(0);
|
||||
}
|
||||
|
||||
public void testMapShortFormTrailingComma() throws Exception {
|
||||
|
@ -1117,7 +1119,7 @@ public class TextFormatTest extends TestCase {
|
|||
parserWithOverwriteForbidden.merge(text, dest);
|
||||
fail("Expected parse exception.");
|
||||
} catch (TextFormat.ParseException e) {
|
||||
assertEquals("1:48: Expected \"{\".", e.getMessage());
|
||||
assertThat(e).hasMessageThat().isEqualTo("1:48: Expected \"{\".");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1132,8 +1134,8 @@ public class TextFormatTest extends TestCase {
|
|||
TestMap.Builder builder = TestMap.newBuilder();
|
||||
defaultParser.merge(text, builder);
|
||||
TestMap map = builder.build();
|
||||
assertEquals(2, map.getInt32ToInt32Field().size());
|
||||
assertEquals(30, map.getInt32ToInt32Field().get(1).intValue());
|
||||
assertThat(map.getInt32ToInt32Field().size()).isEqualTo(2);
|
||||
assertThat(map.getInt32ToInt32Field().get(1).intValue()).isEqualTo(30);
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1142,8 +1144,8 @@ public class TextFormatTest extends TestCase {
|
|||
TestMap.Builder builder = TestMap.newBuilder();
|
||||
defaultParser.merge(text, builder);
|
||||
TestMap map = builder.build();
|
||||
assertEquals(2, map.getInt32ToInt32Field().size());
|
||||
assertEquals(30, map.getInt32ToInt32Field().get(1).intValue());
|
||||
assertThat(map.getInt32ToInt32Field().size()).isEqualTo(2);
|
||||
assertThat(map.getInt32ToInt32Field().get(1).intValue()).isEqualTo(30);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
10
java/pom.xml
10
java/pom.xml
|
@ -11,7 +11,7 @@
|
|||
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-parent</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<version>3.3.0</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Protocol Buffers [Parent]</name>
|
||||
|
@ -84,7 +84,13 @@
|
|||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>19.0</version>
|
||||
<version>20.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.truth</groupId>
|
||||
<artifactId>truth</artifactId>
|
||||
<scope>test</scope>
|
||||
<version>0.32</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-parent</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<version>3.3.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>protobuf-java-util</artifactId>
|
||||
|
|
|
@ -129,7 +129,7 @@ ENV MVN mvn --batch-mode
|
|||
RUN cd /tmp && \
|
||||
git clone https://github.com/google/protobuf.git && \
|
||||
cd protobuf && \
|
||||
git reset --hard 129a6e2aca95dcfb6c3e717d7b9cca1f104fde39 && \
|
||||
git reset --hard c2b3b3e04e7a023efe06f2107705b45428847800 && \
|
||||
./autogen.sh && \
|
||||
./configure && \
|
||||
make -j4 && \
|
||||
|
@ -164,14 +164,6 @@ RUN cd php-7.0.18 && ./configure --enable-maintainer-zts --prefix=/usr/local/php
|
|||
RUN cd php-7.0.18 && make clean && ./configure --prefix=/usr/local/php-7.0 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN wget http://am1.php.net/get/php-7.1.4.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-7.1.4.tar.bz2
|
||||
RUN tar -xvf php-7.1.4.tar.bz2
|
||||
RUN cd php-7.1.4 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-7.1-zts && \
|
||||
make && make install && cd ..
|
||||
RUN cd php-7.1.4 && make clean && ./configure --prefix=/usr/local/php-7.1 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php composer-setup.php
|
||||
RUN mv composer.phar /usr/bin/composer
|
||||
|
@ -198,12 +190,7 @@ RUN cd /tmp && \
|
|||
ln -sfn /usr/local/php-7.0/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.0/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.0 && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.1/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.1
|
||||
mv vendor /usr/local/vendor-7.0
|
||||
|
||||
##################
|
||||
# Go dependencies.
|
||||
|
|
|
@ -57,6 +57,30 @@ RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
|||
|
||||
##################
|
||||
# PHP dependencies.
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php composer-setup.php
|
||||
RUN mv composer.phar /usr/bin/composer
|
||||
RUN php -r "unlink('composer-setup.php');"
|
||||
RUN cd /tmp && \
|
||||
git clone https://github.com/google/protobuf.git && \
|
||||
cd protobuf/php && \
|
||||
git reset --hard 6b27c1f981a9a93918e4039f236ead27165a8e91 && \
|
||||
ln -sfn /usr/bin/php5.5 /usr/bin/php && \
|
||||
ln -sfn /usr/bin/php-config5.5 /usr/bin/php-config && \
|
||||
ln -sfn /usr/bin/phpize5.5 /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.5 && \
|
||||
ln -sfn /usr/bin/php5.6 /usr/bin/php && \
|
||||
ln -sfn /usr/bin/php-config5.6 /usr/bin/php-config && \
|
||||
ln -sfn /usr/bin/phpize5.6 /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.6 && \
|
||||
ln -sfn /usr/bin/php7.0 /usr/bin/php && \
|
||||
ln -sfn /usr/bin/php-config7.0 /usr/bin/php-config && \
|
||||
ln -sfn /usr/bin/phpize7.0 /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.0
|
||||
|
||||
RUN wget http://am1.php.net/get/php-5.5.38.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-5.5.38.tar.bz2
|
||||
RUN tar -xvf php-5.5.38.tar.bz2
|
||||
|
@ -81,45 +105,6 @@ RUN cd php-7.0.18 && ./configure --enable-maintainer-zts --prefix=/usr/local/php
|
|||
RUN cd php-7.0.18 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-7.0 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN wget http://am1.php.net/get/php-7.1.4.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-7.1.4.tar.bz2
|
||||
RUN tar -xvf php-7.1.4.tar.bz2
|
||||
RUN cd php-7.1.4 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-7.1-zts && \
|
||||
make && make install && cd ..
|
||||
RUN cd php-7.1.4 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-7.1 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php composer-setup.php
|
||||
RUN mv composer.phar /usr/bin/composer
|
||||
RUN php -r "unlink('composer-setup.php');"
|
||||
RUN composer config -g -- disable-tls true
|
||||
RUN composer config -g -- secure-http false
|
||||
RUN cd /tmp && \
|
||||
git clone https://github.com/google/protobuf.git && \
|
||||
cd protobuf/php && \
|
||||
git reset --hard 6b27c1f981a9a93918e4039f236ead27165a8e91 && \
|
||||
ln -sfn /usr/local/php-5.5/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-5.5/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-5.5/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.5 && \
|
||||
ln -sfn /usr/local/php-5.6/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-5.6/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-5.6/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.6 && \
|
||||
ln -sfn /usr/local/php-7.0/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-7.0/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.0/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.0 && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.1/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.1
|
||||
|
||||
##################
|
||||
# Python dependencies
|
||||
|
||||
|
|
|
@ -994,7 +994,7 @@ jspb.BinaryDecoder.prototype.readString = function(length) {
|
|||
codeUnits.length = 0;
|
||||
}
|
||||
}
|
||||
result += goog.crypt.byteArrayToString(codeUnits);
|
||||
result += String.fromCharCode.apply(null, codeUnits);
|
||||
this.cursor_ = cursor;
|
||||
return result;
|
||||
};
|
||||
|
|
|
@ -613,7 +613,7 @@ jspb.utils.decimalStringToHash64 = function(dec) {
|
|||
muladd(1, 1);
|
||||
}
|
||||
|
||||
return goog.crypt.byteArrayToString(resultBytes);
|
||||
return String.fromCharCode.apply(null, resultBytes);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -205,31 +205,31 @@ describe('binaryUtilsTest', function() {
|
|||
var convert = jspb.utils.decimalStringToHash64;
|
||||
|
||||
result = convert('0');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]), result);
|
||||
|
||||
result = convert('-1');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]), result);
|
||||
|
||||
result = convert('18446744073709551615');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]), result);
|
||||
|
||||
result = convert('9223372036854775808');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80]), result);
|
||||
|
||||
result = convert('-9223372036854775808');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80]), result);
|
||||
|
||||
result = convert('123456789123456789');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0x15, 0x5F, 0xD0, 0xAC, 0x4B, 0x9B, 0xB6, 0x01]), result);
|
||||
|
||||
result = convert('-123456789123456789');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xEB, 0xA0, 0x2F, 0x53, 0xB4, 0x64, 0x49, 0xFE]), result);
|
||||
});
|
||||
|
||||
|
@ -259,21 +259,21 @@ describe('binaryUtilsTest', function() {
|
|||
var convert = jspb.utils.hexStringToHash64;
|
||||
|
||||
result = convert('0x0000000000000000');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]), result);
|
||||
|
||||
result = convert('0xffffffffffffffff');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]), result);
|
||||
|
||||
// Hex string is big-endian, hash string is little-endian.
|
||||
result = convert('0x123456789ABCDEF0');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xF0, 0xDE, 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12]), result);
|
||||
|
||||
// Capitalization should not matter.
|
||||
result = convert('0x0000abcdefABCDEF');
|
||||
assertEquals(goog.crypt.byteArrayToString(
|
||||
assertEquals(String.fromCharCode.apply(null,
|
||||
[0xEF, 0xCD, 0xAB, 0xEF, 0xCD, 0xAB, 0x00, 0x00]), result);
|
||||
});
|
||||
|
||||
|
@ -643,7 +643,7 @@ describe('binaryUtilsTest', function() {
|
|||
var sourceBytes = new Uint8Array(sourceData);
|
||||
var sourceBuffer = sourceBytes.buffer;
|
||||
var sourceBase64 = goog.crypt.base64.encodeByteArray(sourceData);
|
||||
var sourceString = goog.crypt.byteArrayToString(sourceData);
|
||||
var sourceString = String.fromCharCode.apply(null, sourceData);
|
||||
|
||||
function check(result) {
|
||||
assertEquals(Uint8Array, result.constructor);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "google-protobuf",
|
||||
"version": "3.3.2",
|
||||
"version": "3.3.0",
|
||||
"description": "Protocol Buffers for JavaScript",
|
||||
"main": "google-protobuf.js",
|
||||
"files": [
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
|
||||
#include "protobuf.h"
|
||||
|
||||
const char* const kReservedNames[] = {"Empty", "ECHO", "ARRAY"};
|
||||
const int kReservedNamesSize = 3;
|
||||
const char* const kReservedNames[] = {"Empty"};
|
||||
const int kReservedNamesSize = 1;
|
||||
|
||||
// Forward declare.
|
||||
static void descriptor_init_c_instance(Descriptor* intern TSRMLS_DC);
|
||||
|
|
|
@ -1167,7 +1167,6 @@ static void putrawmsg(MessageHeader* msg, const Descriptor* desc,
|
|||
upb_msg_field_next(&i)) {
|
||||
upb_fielddef* f = upb_msg_iter_field(&i);
|
||||
uint32_t offset = desc->layout->fields[upb_fielddef_index(f)].offset;
|
||||
bool containing_oneof = false;
|
||||
|
||||
if (upb_fielddef_containingoneof(f)) {
|
||||
uint32_t oneof_case_offset =
|
||||
|
@ -1180,7 +1179,6 @@ static void putrawmsg(MessageHeader* msg, const Descriptor* desc,
|
|||
}
|
||||
// Otherwise, fall through to the appropriate singular-field handler
|
||||
// below.
|
||||
containing_oneof = true;
|
||||
}
|
||||
|
||||
if (is_map_field(f)) {
|
||||
|
@ -1211,7 +1209,7 @@ static void putrawmsg(MessageHeader* msg, const Descriptor* desc,
|
|||
#define T(upbtypeconst, upbtype, ctype, default_value) \
|
||||
case upbtypeconst: { \
|
||||
ctype value = DEREF(message_data(msg), offset, ctype); \
|
||||
if (containing_oneof || value != default_value) { \
|
||||
if (value != default_value) { \
|
||||
upb_sink_put##upbtype(sink, sel, value); \
|
||||
} \
|
||||
} break;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <php.h>
|
||||
#include <stdlib.h>
|
||||
#include <ext/json/php_json.h>
|
||||
|
||||
#include "protobuf.h"
|
||||
|
||||
|
@ -115,11 +116,7 @@ static void message_set_property(zval* object, zval* member, zval* value,
|
|||
return;
|
||||
}
|
||||
|
||||
#if PHP_MAJOR_VERSION < 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0)
|
||||
if (Z_OBJCE_P(object) != EG(scope)) {
|
||||
#else
|
||||
if (Z_OBJCE_P(object) != zend_get_executed_scope()) {
|
||||
#endif
|
||||
// User cannot set property directly (e.g., $m->a = 1)
|
||||
zend_error(E_USER_ERROR, "Cannot access private property.");
|
||||
return;
|
||||
|
@ -149,11 +146,7 @@ static zval* message_get_property(zval* object, zval* member, int type,
|
|||
return PHP_PROTO_GLOBAL_UNINITIALIZED_ZVAL;
|
||||
}
|
||||
|
||||
#if PHP_MAJOR_VERSION < 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0)
|
||||
if (Z_OBJCE_P(object) != EG(scope)) {
|
||||
#else
|
||||
if (Z_OBJCE_P(object) != zend_get_executed_scope()) {
|
||||
#endif
|
||||
// User cannot get property directly (e.g., $a = $m->a)
|
||||
zend_error(E_USER_ERROR, "Cannot access private property.");
|
||||
return PHP_PROTO_GLOBAL_UNINITIALIZED_ZVAL;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<date>2017-01-13</date>
|
||||
<time>16:06:07</time>
|
||||
<version>
|
||||
<release>3.3.2</release>
|
||||
<release>3.3.0</release>
|
||||
<api>3.3.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
|
@ -40,7 +40,6 @@ GA release.
|
|||
<file baseinstalldir="/" name="upb.h" role="src" />
|
||||
<file baseinstalldir="/" name="utf8.c" role="src" />
|
||||
<file baseinstalldir="/" name="utf8.h" role="src" />
|
||||
<file baseinstalldir="/" name="LICENSE" role="doc" />
|
||||
</dir>
|
||||
</contents>
|
||||
<dependencies>
|
||||
|
@ -101,38 +100,6 @@ Second alpha release.
|
|||
<time>16:06:07</time>
|
||||
<license uri="https://opensource.org/licenses/BSD-3-Clause">3-Clause BSD License</license>
|
||||
<notes>
|
||||
GA release.
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<version>
|
||||
<release>3.3.1</release>
|
||||
<api>3.3.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<date>2017-05-08</date>
|
||||
<time>15:33:07</time>
|
||||
<license uri="https://opensource.org/licenses/BSD-3-Clause">3-Clause BSD License</license>
|
||||
<notes>
|
||||
GA release.
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<version>
|
||||
<release>3.3.2</release>
|
||||
<api>3.3.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<date>2017-06-21</date>
|
||||
<time>15:33:07</time>
|
||||
<license uri="https://opensource.org/licenses/BSD-3-Clause">3-Clause BSD License</license>
|
||||
<notes>
|
||||
GA release.
|
||||
</notes>
|
||||
</release>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "upb.h"
|
||||
|
||||
#define PHP_PROTOBUF_EXTNAME "protobuf"
|
||||
#define PHP_PROTOBUF_VERSION "3.3.2"
|
||||
#define PHP_PROTOBUF_VERSION "3.3.0"
|
||||
|
||||
#define MAX_LENGTH_OF_INT64 20
|
||||
#define SIZEOF_INT64 8
|
||||
|
|
|
@ -2290,9 +2290,6 @@ bool upb_symtab_addfile(upb_symtab *s, upb_filedef *file, upb_status *status) {
|
|||
bool ret;
|
||||
|
||||
n = upb_filedef_defcount(file);
|
||||
if (n == 0) {
|
||||
return true;
|
||||
}
|
||||
defs = upb_gmalloc(sizeof(*defs) * n);
|
||||
|
||||
if (defs == NULL) {
|
||||
|
|
|
@ -739,13 +739,6 @@ class Message
|
|||
*/
|
||||
private function existField($field)
|
||||
{
|
||||
$oneof_index = $field->getOneofIndex();
|
||||
if ($oneof_index !== -1) {
|
||||
$oneof = $this->desc->getOneofDecl()[$oneof_index];
|
||||
$oneof_name = $oneof->getName();
|
||||
return $this->$oneof_name->getNumber() === $field->getNumber();
|
||||
}
|
||||
|
||||
$getter = $field->getGetter();
|
||||
$value = $this->$getter();
|
||||
return $value !== $this->defaultValue($field);
|
||||
|
|
|
@ -236,7 +236,7 @@ function getClassNamePrefix(
|
|||
return $prefix;
|
||||
}
|
||||
|
||||
$reserved_words = array("Empty", "ECHO", "ARRAY");
|
||||
$reserved_words = array("Empty");
|
||||
foreach ($reserved_words as $reserved_word) {
|
||||
if ($classname === $reserved_word) {
|
||||
if ($file_proto->getPackage() === "google.protobuf") {
|
||||
|
|
|
@ -88,13 +88,6 @@ class EncodeDecodeTest extends TestBase
|
|||
$n = new TestMessage();
|
||||
$n->mergeFromString($data);
|
||||
$this->assertSame(1, $n->getOneofMessage()->getA());
|
||||
|
||||
// Encode default value
|
||||
$m->setOneofEnum(TestEnum::ZERO);
|
||||
$data = $m->serializeToString();
|
||||
$n = new TestMessage();
|
||||
$n->mergeFromString($data);
|
||||
$this->assertSame("oneof_enum", $n->getMyOneof());
|
||||
}
|
||||
|
||||
public function testPackedEncode()
|
||||
|
|
|
@ -876,6 +876,5 @@ class GeneratedClassTest extends TestBase
|
|||
$m = new \Foo\TestMessage_Empty();
|
||||
$m = new \Foo\PBEmpty();
|
||||
$m = new \PrefixEmpty();
|
||||
$m = new \Foo\PBARRAY();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ require_once('generated/NoNamespaceMessage_NestedEnum.php');
|
|||
require_once('generated/PrefixEmpty.php');
|
||||
require_once('generated/PrefixTestPrefix.php');
|
||||
require_once('generated/Bar/TestInclude.php');
|
||||
require_once('generated/Foo/PBARRAY.php');
|
||||
require_once('generated/Foo/PBEmpty.php');
|
||||
require_once('generated/Foo/TestEnum.php');
|
||||
require_once('generated/Foo/TestIncludePrefixMessage.php');
|
||||
|
|
|
@ -127,10 +127,6 @@ message Empty {
|
|||
int32 a = 1;
|
||||
}
|
||||
|
||||
message ARRAY {
|
||||
int32 a = 1;
|
||||
}
|
||||
|
||||
message TestPackedMessage {
|
||||
repeated int32 repeated_int32 = 90 [packed = true];
|
||||
repeated int64 repeated_int64 = 91 [packed = true];
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</parent>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protoc</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<version>3.3.0</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Protobuf Compiler</name>
|
||||
<description>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
# Copyright 2007 Google Inc. All Rights Reserved.
|
||||
|
||||
__version__ = '3.3.2'
|
||||
__version__ = '3.3.0'
|
||||
|
||||
if __name__ != '__main__':
|
||||
try:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = "google-protobuf"
|
||||
s.version = "3.3.2"
|
||||
s.version = "3.3.0"
|
||||
s.licenses = ["BSD-3-Clause"]
|
||||
s.summary = "Protocol Buffers"
|
||||
s.description = "Protocol Buffers are Google's data interchange format."
|
||||
|
|
|
@ -184,7 +184,7 @@ nobase_include_HEADERS = \
|
|||
lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
|
||||
|
||||
libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS)
|
||||
libprotobuf_lite_la_LDFLAGS = -version-info 13:2:0 -export-dynamic -no-undefined
|
||||
libprotobuf_lite_la_LDFLAGS = -version-info 13:0:0 -export-dynamic -no-undefined
|
||||
if HAVE_LD_VERSION_SCRIPT
|
||||
libprotobuf_lite_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf-lite.map
|
||||
EXTRA_libprotobuf_lite_la_DEPENDENCIES = libprotobuf-lite.map
|
||||
|
@ -229,7 +229,7 @@ libprotobuf_lite_la_SOURCES = \
|
|||
google/protobuf/io/zero_copy_stream_impl_lite.cc
|
||||
|
||||
libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
|
||||
libprotobuf_la_LDFLAGS = -version-info 13:2:0 -export-dynamic -no-undefined
|
||||
libprotobuf_la_LDFLAGS = -version-info 13:0:0 -export-dynamic -no-undefined
|
||||
if HAVE_LD_VERSION_SCRIPT
|
||||
libprotobuf_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf.map
|
||||
EXTRA_libprotobuf_la_DEPENDENCIES = libprotobuf.map
|
||||
|
@ -250,7 +250,6 @@ libprotobuf_la_SOURCES = \
|
|||
google/protobuf/extension_set_heavy.cc \
|
||||
google/protobuf/field_mask.pb.cc \
|
||||
google/protobuf/generated_message_reflection.cc \
|
||||
google/protobuf/generated_message_table_driven.cc \
|
||||
google/protobuf/map_field.cc \
|
||||
google/protobuf/message.cc \
|
||||
google/protobuf/reflection_internal.h \
|
||||
|
@ -319,7 +318,7 @@ libprotobuf_la_SOURCES = \
|
|||
nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES)
|
||||
|
||||
libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
|
||||
libprotoc_la_LDFLAGS = -version-info 13:2:0 -export-dynamic -no-undefined
|
||||
libprotoc_la_LDFLAGS = -version-info 13:0:0 -export-dynamic -no-undefined
|
||||
if HAVE_LD_VERSION_SCRIPT
|
||||
libprotoc_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotoc.map
|
||||
EXTRA_libprotoc_la_DEPENDENCIES = libprotoc.map
|
||||
|
|
|
@ -309,7 +309,6 @@ void Any::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Any::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Any)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -482,7 +482,6 @@ void Api::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Api::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1245,7 +1244,6 @@ void Method::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Method::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1859,7 +1857,6 @@ void Mixin::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Mixin::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -162,8 +162,8 @@ typedef GeneratorContext OutputDirectory;
|
|||
// "foo=bar,baz,qux=corge"
|
||||
// parses to the pairs:
|
||||
// ("foo", "bar"), ("baz", ""), ("qux", "corge")
|
||||
LIBPROTOC_EXPORT void ParseGeneratorParameter(
|
||||
const string&, std::vector<std::pair<string, string> >*);
|
||||
extern void ParseGeneratorParameter(const string&,
|
||||
std::vector<std::pair<string, string> >*);
|
||||
|
||||
} // namespace compiler
|
||||
} // namespace protobuf
|
||||
|
|
|
@ -3715,7 +3715,6 @@ GenerateSerializeWithCachedSizesToArray(io::Printer* printer) {
|
|||
"classname", classname_);
|
||||
printer->Indent();
|
||||
|
||||
printer->Print("(void)deterministic; // Unused\n");
|
||||
printer->Print(
|
||||
"// @@protoc_insertion_point(serialize_to_array_start:$full_name$)\n",
|
||||
"full_name", descriptor_->full_name());
|
||||
|
|
|
@ -134,14 +134,6 @@ class GenerateAndTest {
|
|||
};
|
||||
|
||||
TEST(CsharpBootstrapTest, GeneratedCsharpDescriptorMatches) {
|
||||
// Skip this whole test if the csharp directory doesn't exist (i.e., a C++11
|
||||
// only distribution).
|
||||
string descriptor_file_name =
|
||||
"../csharp/src/Google.Protobuf/Reflection/Descriptor.cs";
|
||||
if (!File::Exists(TestSourceDir() + "/" + descriptor_file_name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
MockErrorCollector error_collector;
|
||||
DiskSourceTree source_tree;
|
||||
Importer importer(&source_tree, &error_collector);
|
||||
|
|
|
@ -55,13 +55,6 @@
|
|||
#include <google/protobuf/stubs/substitute.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#ifdef major
|
||||
#undef major
|
||||
#endif
|
||||
#ifdef minor
|
||||
#undef minor
|
||||
#endif
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
namespace compiler {
|
||||
|
|
|
@ -49,8 +49,8 @@ const std::string kDescriptorMetadataFile =
|
|||
"GPBMetadata/Google/Protobuf/Internal/Descriptor.php";
|
||||
const std::string kDescriptorDirName = "Google/Protobuf/Internal";
|
||||
const std::string kDescriptorPackageName = "Google\\Protobuf\\Internal";
|
||||
const char* const kReservedNames[] = {"ARRAY", "Empty", "ECHO"};
|
||||
const int kReservedNamesSize = 3;
|
||||
const char* const kReservedNames[] = {"Empty", "ECHO"};
|
||||
const int kReservedNamesSize = 2;
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
|
|
@ -428,7 +428,6 @@ void Version::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Version::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -965,7 +964,6 @@ void CodeGeneratorRequest::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* CodeGeneratorRequest::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1575,7 +1573,6 @@ void CodeGeneratorResponse_File::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* CodeGeneratorResponse_File::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -2099,7 +2096,6 @@ void CodeGeneratorResponse::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* CodeGeneratorResponse::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -394,7 +394,6 @@ void FieldAccessInfo::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FieldAccessInfo::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.FieldAccessInfo)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -890,7 +889,6 @@ void MessageAccessInfo::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* MessageAccessInfo::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.MessageAccessInfo)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1295,7 +1293,6 @@ void AccessInfo::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* AccessInfo::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.AccessInfo)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -1123,7 +1123,6 @@ void FileDescriptorSet::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1721,7 +1720,6 @@ void FileDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -2748,7 +2746,6 @@ void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -3086,7 +3083,6 @@ void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -3623,7 +3619,6 @@ void DescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -4752,7 +4747,6 @@ void FieldDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -5695,7 +5689,6 @@ void OneofDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -6147,7 +6140,6 @@ void EnumDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -6652,7 +6644,6 @@ void EnumValueDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -7145,7 +7136,6 @@ void ServiceDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -7749,7 +7739,6 @@ void MethodDescriptorProto::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -8849,7 +8838,6 @@ void FileOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -10194,7 +10182,6 @@ void MessageOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -10791,7 +10778,6 @@ void FieldOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -11328,7 +11314,6 @@ void OneofOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -11674,7 +11659,6 @@ void EnumOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -12077,7 +12061,6 @@ void EnumValueOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -12436,7 +12419,6 @@ void ServiceOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -12827,7 +12809,6 @@ void MethodOptions::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -13238,7 +13219,6 @@ void UninterpretedOption_NamePart::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -13783,7 +13763,6 @@ void UninterpretedOption::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -14583,7 +14562,6 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -15190,7 +15168,6 @@ void SourceCodeInfo::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -15559,7 +15536,6 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -16013,7 +15989,6 @@ void GeneratedCodeInfo::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -299,7 +299,6 @@ void Duration::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Duration::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Duration)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -244,7 +244,6 @@ void Empty::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Empty::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -264,7 +264,6 @@ void FieldMask::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FieldMask::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldMask)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -74,7 +74,7 @@ inline Arena* GetArena(MessageLite* msg, int64 arena_offset) {
|
|||
template <typename Type>
|
||||
inline Type* AddField(MessageLite* msg, int64 offset) {
|
||||
#if LANG_CXX11
|
||||
static_assert(google::protobuf::internal::has_trivial_copy<Type>::value,
|
||||
static_assert(std::is_trivially_copy_assignable<Type>::value,
|
||||
"Do not assign");
|
||||
#endif
|
||||
|
||||
|
@ -94,7 +94,7 @@ inline string* AddField<string>(MessageLite* msg, int64 offset) {
|
|||
template <typename Type>
|
||||
inline void AddField(MessageLite* msg, int64 offset, Type value) {
|
||||
#if LANG_CXX11
|
||||
static_assert(google::protobuf::internal::has_trivial_copy<Type>::value,
|
||||
static_assert(std::is_trivially_copy_assignable<Type>::value,
|
||||
"Do not assign");
|
||||
#endif
|
||||
*AddField<Type>(msg, offset) = value;
|
||||
|
@ -118,7 +118,7 @@ template <typename Type>
|
|||
inline void SetField(MessageLite* msg, uint32* has_bits, uint32 has_bit_index,
|
||||
int64 offset, Type value) {
|
||||
#if LANG_CXX11
|
||||
static_assert(google::protobuf::internal::has_trivial_copy<Type>::value,
|
||||
static_assert(std::is_trivially_copy_assignable<Type>::value,
|
||||
"Do not assign");
|
||||
#endif
|
||||
*MutableField<Type>(msg, has_bits, has_bit_index, offset) = value;
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace internal {
|
|||
// choose 16 rather than some other number just in case the compiler would
|
||||
// be confused by an unaligned pointer.
|
||||
#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TYPE, FIELD) \
|
||||
static_cast< ::google::protobuf::uint32>( \
|
||||
static_cast<int>( \
|
||||
reinterpret_cast<const char*>( \
|
||||
&reinterpret_cast<const TYPE*>(16)->FIELD) - \
|
||||
reinterpret_cast<const char*>(16))
|
||||
|
|
|
@ -167,8 +167,7 @@ class InternalMetadataWithArenaLite
|
|||
InternalMetadataWithArenaLite() {}
|
||||
|
||||
explicit InternalMetadataWithArenaLite(Arena* arena)
|
||||
: InternalMetadataWithArenaBase<string,
|
||||
InternalMetadataWithArenaLite>(arena) {}
|
||||
: InternalMetadataWithArenaBase(arena) {}
|
||||
|
||||
void DoSwap(string* other) {
|
||||
mutable_unknown_fields()->swap(*other);
|
||||
|
|
|
@ -269,7 +269,6 @@ void SourceContext::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* SourceContext::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceContext)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -436,7 +436,6 @@ void Struct::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Struct::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -953,7 +952,6 @@ void Value::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Value::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1685,7 +1683,6 @@ void ListValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* ListValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace internal {
|
|||
|
||||
// The current version, represented as a single integer to make comparison
|
||||
// easier: major * 10^6 + minor * 10^3 + micro
|
||||
#define GOOGLE_PROTOBUF_VERSION 3003002
|
||||
#define GOOGLE_PROTOBUF_VERSION 3003000
|
||||
|
||||
// A suffix string for alpha, beta or rc releases. Empty for stable releases.
|
||||
#define GOOGLE_PROTOBUF_VERSION_SUFFIX ""
|
||||
|
|
|
@ -299,7 +299,6 @@ void Timestamp::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Timestamp::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Timestamp)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -667,7 +667,6 @@ void Type::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Type::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1531,7 +1530,6 @@ void Field::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Field::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -2468,7 +2466,6 @@ void Enum::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Enum::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -3050,7 +3047,6 @@ void EnumValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* EnumValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -3533,7 +3529,6 @@ void Option::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Option::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
|
@ -392,7 +392,6 @@ void DoubleValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* DoubleValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -657,7 +656,6 @@ void FloatValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* FloatValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -922,7 +920,6 @@ void Int64Value::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Int64Value::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Value)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1189,7 +1186,6 @@ void UInt64Value::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* UInt64Value::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Value)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1456,7 +1452,6 @@ void Int32Value::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* Int32Value::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Value)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1723,7 +1718,6 @@ void UInt32Value::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* UInt32Value::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Value)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -1990,7 +1984,6 @@ void BoolValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* BoolValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -2267,7 +2260,6 @@ void StringValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* StringValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
@ -2597,7 +2589,6 @@ void BytesValue::SerializeWithCachedSizes(
|
|||
|
||||
::google::protobuf::uint8* BytesValue::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValue)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
|
37
tests.sh
37
tests.sh
|
@ -545,51 +545,16 @@ build_php7.0_mac() {
|
|||
popd
|
||||
}
|
||||
|
||||
build_php7.1() {
|
||||
use_php 7.1
|
||||
pushd php
|
||||
rm -rf vendor
|
||||
cp -r /usr/local/vendor-7.1 vendor
|
||||
wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
|
||||
phpunit
|
||||
popd
|
||||
pushd conformance
|
||||
# TODO(teboring): Add it back
|
||||
# make test_php
|
||||
popd
|
||||
}
|
||||
|
||||
build_php7.1_c() {
|
||||
use_php 7.1
|
||||
wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
|
||||
cd php/tests && /bin/bash ./test.sh && cd ../..
|
||||
pushd conformance
|
||||
# make test_php_c
|
||||
popd
|
||||
}
|
||||
|
||||
build_php7.1_zts_c() {
|
||||
use_php_zts 7.1
|
||||
wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
|
||||
cd php/tests && /bin/bash ./test.sh && cd ../..
|
||||
pushd conformance
|
||||
# make test_php_c
|
||||
popd
|
||||
}
|
||||
|
||||
build_php_all() {
|
||||
build_php5.5
|
||||
build_php5.6
|
||||
build_php7.0
|
||||
build_php7.1
|
||||
build_php5.5_c
|
||||
build_php5.6_c
|
||||
build_php7.0_c
|
||||
build_php7.1_c
|
||||
build_php5.5_zts_c
|
||||
build_php5.6_zts_c
|
||||
build_php7.0_zts_c
|
||||
build_php7.1_zts_c
|
||||
}
|
||||
|
||||
# Note: travis currently does not support testing more than one language so the
|
||||
|
@ -630,8 +595,6 @@ Usage: $0 { cpp |
|
|||
php5.6_c |
|
||||
php7.0 |
|
||||
php7.0_c |
|
||||
php7.1 |
|
||||
php7.1_c |
|
||||
php_all)
|
||||
"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue