1 // 2 // Copyright (C) 2014 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #ifndef SHILL_MOBILE_OPERATOR_DB_TEST_PROTOS_INIT_TEST_SUCCESSFUL_INIT_H_ 18 #define SHILL_MOBILE_OPERATOR_DB_TEST_PROTOS_INIT_TEST_SUCCESSFUL_INIT_H_ 19 20 #ifndef IN_MOBILE_OPERATOR_INFO_UNITTEST_CC 21 #error "Must be included only from mobile_operator_info_unittest.cc." 22 #endif 23 24 // Following is the binary protobuf for the following (text representation) 25 // protobuf: 26 // mno { 27 // data { 28 // uuid: "muahahahaha" 29 // provider_type: CDMA 30 // country: "us" 31 // localized_name { 32 // name: "Faulkner" 33 // } 34 // sid: "0000" 35 // } 36 // } 37 // 38 // imvno { 39 // mccmnc: "00" 40 // mvno { 41 // data { 42 // uuid: "teeheehee" 43 // provider_type: CDMA 44 // country: "us" 45 // localized_name { 46 // name: "Falkner" 47 // } 48 // sid: "0000" 49 // } 50 // } 51 // } 52 // 53 // The binary data for the protobuf in this file was generated by writing the 54 // prototxt file init_test_successful_init.prototxt and then: 55 // protoc --proto_path .. --encode "shill.mobile_operator_db.MobileOperatorDB" 56 // ../mobile_operator_db.proto < init_test_successful_init.prototxt 57 // > init_test_successful_init.h.pbf 58 // cat init_test_successful_init.h.pbf | xxd -i 59 60 namespace shill { 61 namespace mobile_operator_db { 62 static const unsigned char init_test_successful_init[] { 63 0x0a, 0x28, 0x0a, 0x26, 0x0a, 0x0b, 0x6d, 0x75, 0x61, 0x68, 0x61, 0x68, 64 0x61, 0x68, 0x61, 0x68, 0x61, 0x10, 0x02, 0x1a, 0x02, 0x75, 0x73, 0x22, 65 0x0a, 0x0a, 0x08, 0x46, 0x61, 0x75, 0x6c, 0x6b, 0x6e, 0x65, 0x72, 0xca, 66 0x02, 0x04, 0x30, 0x30, 0x30, 0x30, 0x12, 0x2b, 0x0a, 0x02, 0x30, 0x30, 67 0x7a, 0x25, 0x12, 0x23, 0x0a, 0x09, 0x74, 0x65, 0x65, 0x68, 0x65, 0x65, 68 0x68, 0x65, 0x65, 0x10, 0x02, 0x1a, 0x02, 0x75, 0x73, 0x22, 0x09, 0x0a, 69 0x07, 0x46, 0x61, 0x6c, 0x6b, 0x6e, 0x65, 0x72, 0xca, 0x02, 0x04, 0x30, 70 0x30, 0x30, 0x30 71 }; 72 } // namespace mobile_operator_db 73 } // namespace shill 74 75 #endif // SHILL_MOBILE_OPERATOR_DB_TEST_PROTOS_INIT_TEST_SUCCESSFUL_INIT_H_ 76