Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9271)

Unified Diff: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/test.pb.cc

Issue 4124013: autofill code review. Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/test.pb.cc
diff --git a/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/test.pb.cc b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/test.pb.cc
new file mode 100755
index 0000000000000000000000000000000000000000..a7352e6dac69cbefd46b19563006fa124476db77
--- /dev/null
+++ b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/test.pb.cc
@@ -0,0 +1,416 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+
+#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
+#include "test.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+// @@protoc_insertion_point(includes)
+
+namespace sync_pb {
+
+void protobuf_ShutdownFile_test_2eproto() {
+ delete UnknownFieldsTestA::default_instance_;
+ delete UnknownFieldsTestB::default_instance_;
+}
+
+void protobuf_AddDesc_test_2eproto() {
+ static bool already_here = false;
+ if (already_here) return;
+ already_here = true;
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ UnknownFieldsTestA::default_instance_ = new UnknownFieldsTestA();
+ UnknownFieldsTestB::default_instance_ = new UnknownFieldsTestB();
+ UnknownFieldsTestA::default_instance_->InitAsDefaultInstance();
+ UnknownFieldsTestB::default_instance_->InitAsDefaultInstance();
+ ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_test_2eproto);
+}
+
+// Force AddDescriptors() to be called at static initialization time.
+struct StaticDescriptorInitializer_test_2eproto {
+ StaticDescriptorInitializer_test_2eproto() {
+ protobuf_AddDesc_test_2eproto();
+ }
+} static_descriptor_initializer_test_2eproto_;
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int UnknownFieldsTestA::kFooFieldNumber;
+#endif // !_MSC_VER
+
+UnknownFieldsTestA::UnknownFieldsTestA()
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+}
+
+void UnknownFieldsTestA::InitAsDefaultInstance() {
+}
+
+UnknownFieldsTestA::UnknownFieldsTestA(const UnknownFieldsTestA& from)
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+ MergeFrom(from);
+}
+
+void UnknownFieldsTestA::SharedCtor() {
+ _cached_size_ = 0;
+ foo_ = false;
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+UnknownFieldsTestA::~UnknownFieldsTestA() {
+ SharedDtor();
+}
+
+void UnknownFieldsTestA::SharedDtor() {
+ if (this != default_instance_) {
+ }
+}
+
+void UnknownFieldsTestA::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const UnknownFieldsTestA& UnknownFieldsTestA::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_test_2eproto(); return *default_instance_;
+}
+
+UnknownFieldsTestA* UnknownFieldsTestA::default_instance_ = NULL;
+
+UnknownFieldsTestA* UnknownFieldsTestA::New() const {
+ return new UnknownFieldsTestA;
+}
+
+void UnknownFieldsTestA::Clear() {
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ foo_ = false;
+ }
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ mutable_unknown_fields()->Clear();
+}
+
+bool UnknownFieldsTestA::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+ ::google::protobuf::uint32 tag;
+ while ((tag = input->ReadTag()) != 0) {
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // required bool foo = 1;
+ case 1: {
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &foo_)));
+ _set_bit(0);
+ } else {
+ goto handle_uninterpreted;
+ }
+ if (input->ExpectAtEnd()) return true;
+ break;
+ }
+
+ default: {
+ handle_uninterpreted:
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
+ return true;
+ }
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+ return true;
+#undef DO_
+}
+
+void UnknownFieldsTestA::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // required bool foo = 1;
+ if (_has_bit(0)) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->foo(), output);
+ }
+
+ if (!unknown_fields().empty()) {
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
+ unknown_fields(), output);
+ }
+}
+
+int UnknownFieldsTestA::ByteSize() const {
+ int total_size = 0;
+
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ // required bool foo = 1;
+ if (has_foo()) {
+ total_size += 1 + 1;
+ }
+
+ }
+ if (!unknown_fields().empty()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
+ unknown_fields());
+ }
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = total_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void UnknownFieldsTestA::CheckTypeAndMergeFrom(
+ const ::google::protobuf::MessageLite& from) {
+ MergeFrom(*::google::protobuf::down_cast<const UnknownFieldsTestA*>(&from));
+}
+
+void UnknownFieldsTestA::MergeFrom(const UnknownFieldsTestA& from) {
+ GOOGLE_CHECK_NE(&from, this);
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (from._has_bit(0)) {
+ set_foo(from.foo());
+ }
+ }
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields());
+}
+
+void UnknownFieldsTestA::CopyFrom(const UnknownFieldsTestA& from) {
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool UnknownFieldsTestA::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
+
+ return true;
+}
+
+void UnknownFieldsTestA::Swap(UnknownFieldsTestA* other) {
+ if (other != this) {
+ std::swap(foo_, other->foo_);
+ std::swap(_has_bits_[0], other->_has_bits_[0]);
+ _unknown_fields_.Swap(&other->_unknown_fields_);
+ std::swap(_cached_size_, other->_cached_size_);
+ }
+}
+
+::std::string UnknownFieldsTestA::GetTypeName() const {
+ return "sync_pb.UnknownFieldsTestA";
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int UnknownFieldsTestB::kFooFieldNumber;
+const int UnknownFieldsTestB::kBarFieldNumber;
+#endif // !_MSC_VER
+
+UnknownFieldsTestB::UnknownFieldsTestB()
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+}
+
+void UnknownFieldsTestB::InitAsDefaultInstance() {
+}
+
+UnknownFieldsTestB::UnknownFieldsTestB(const UnknownFieldsTestB& from)
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+ MergeFrom(from);
+}
+
+void UnknownFieldsTestB::SharedCtor() {
+ _cached_size_ = 0;
+ foo_ = false;
+ bar_ = false;
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+UnknownFieldsTestB::~UnknownFieldsTestB() {
+ SharedDtor();
+}
+
+void UnknownFieldsTestB::SharedDtor() {
+ if (this != default_instance_) {
+ }
+}
+
+void UnknownFieldsTestB::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const UnknownFieldsTestB& UnknownFieldsTestB::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_test_2eproto(); return *default_instance_;
+}
+
+UnknownFieldsTestB* UnknownFieldsTestB::default_instance_ = NULL;
+
+UnknownFieldsTestB* UnknownFieldsTestB::New() const {
+ return new UnknownFieldsTestB;
+}
+
+void UnknownFieldsTestB::Clear() {
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ foo_ = false;
+ bar_ = false;
+ }
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ mutable_unknown_fields()->Clear();
+}
+
+bool UnknownFieldsTestB::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+ ::google::protobuf::uint32 tag;
+ while ((tag = input->ReadTag()) != 0) {
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // required bool foo = 1;
+ case 1: {
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &foo_)));
+ _set_bit(0);
+ } else {
+ goto handle_uninterpreted;
+ }
+ if (input->ExpectTag(16)) goto parse_bar;
+ break;
+ }
+
+ // required bool bar = 2;
+ case 2: {
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ parse_bar:
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &bar_)));
+ _set_bit(1);
+ } else {
+ goto handle_uninterpreted;
+ }
+ if (input->ExpectAtEnd()) return true;
+ break;
+ }
+
+ default: {
+ handle_uninterpreted:
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
+ return true;
+ }
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+ return true;
+#undef DO_
+}
+
+void UnknownFieldsTestB::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // required bool foo = 1;
+ if (_has_bit(0)) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->foo(), output);
+ }
+
+ // required bool bar = 2;
+ if (_has_bit(1)) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bar(), output);
+ }
+
+ if (!unknown_fields().empty()) {
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
+ unknown_fields(), output);
+ }
+}
+
+int UnknownFieldsTestB::ByteSize() const {
+ int total_size = 0;
+
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ // required bool foo = 1;
+ if (has_foo()) {
+ total_size += 1 + 1;
+ }
+
+ // required bool bar = 2;
+ if (has_bar()) {
+ total_size += 1 + 1;
+ }
+
+ }
+ if (!unknown_fields().empty()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
+ unknown_fields());
+ }
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = total_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void UnknownFieldsTestB::CheckTypeAndMergeFrom(
+ const ::google::protobuf::MessageLite& from) {
+ MergeFrom(*::google::protobuf::down_cast<const UnknownFieldsTestB*>(&from));
+}
+
+void UnknownFieldsTestB::MergeFrom(const UnknownFieldsTestB& from) {
+ GOOGLE_CHECK_NE(&from, this);
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (from._has_bit(0)) {
+ set_foo(from.foo());
+ }
+ if (from._has_bit(1)) {
+ set_bar(from.bar());
+ }
+ }
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields());
+}
+
+void UnknownFieldsTestB::CopyFrom(const UnknownFieldsTestB& from) {
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool UnknownFieldsTestB::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
+
+ return true;
+}
+
+void UnknownFieldsTestB::Swap(UnknownFieldsTestB* other) {
+ if (other != this) {
+ std::swap(foo_, other->foo_);
+ std::swap(bar_, other->bar_);
+ std::swap(_has_bits_[0], other->_has_bits_[0]);
+ _unknown_fields_.Swap(&other->_unknown_fields_);
+ std::swap(_cached_size_, other->_cached_size_);
+ }
+}
+
+::std::string UnknownFieldsTestB::GetTypeName() const {
+ return "sync_pb.UnknownFieldsTestB";
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace sync_pb
+
+// @@protoc_insertion_point(global_scope)

Powered by Google App Engine
This is Rietveld 408576698