diff --git a/.gitmodules b/.gitmodules
index 0f003693e43243cf46d5e459796be49a7176aae4..c9af37c5ab065042ba3295646c91ae62a19fbc6b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,16 +1,9 @@
 [submodule "third_party/zlib"]
 	path = third_party/zlib
 	url = https://github.com/madler/zlib
-[submodule "third_party/protobuf"]
-	path = third_party/protobuf
-	url = https://github.com/google/protobuf.git
-	branch = 3.0.x
 [submodule "third_party/gflags"]
 	path = third_party/gflags
 	url = https://github.com/gflags/gflags.git
-[submodule "third_party/googletest"]
-	path = third_party/googletest
-	url = https://github.com/google/googletest.git
 [submodule "third_party/boringssl"]
 	path = third_party/boringssl
 	url = https://github.com/google/boringssl.git
diff --git a/src/compiler/cpp_generator.h b/src/compiler/cpp_generator.h
index 55432203d3eec32b1a58d1ca05bfee67a45954a0..c59310f0536528489dbce250ad91bfa86f72de11 100644
--- a/src/compiler/cpp_generator.h
+++ b/src/compiler/cpp_generator.h
@@ -111,6 +111,18 @@ grpc::string GetMockServices(File* file, const Parameters &params);
 // Return the epilogue of generated mock file.
 grpc::string GetMockEpilogue(File* file, const Parameters &params);
 
+// Return the prologue of the generated mock file.
+grpc::string GetMockPrologue(File *file, const Parameters &params);
+
+// Return the includes needed for generated mock file.
+grpc::string GetMockIncludes(File *file, const Parameters &params);
+
+// Return the services for generated mock file.
+grpc::string GetMockServices(File* file, const Parameters &params);
+
+// Return the epilogue of generated mock file.
+grpc::string GetMockEpilogue(File* file, const Parameters &params);
+
 }  // namespace grpc_cpp_generator
 
 #endif  // GRPC_INTERNAL_COMPILER_CPP_GENERATOR_H
diff --git a/third_party/googletest b/third_party/googletest
deleted file mode 160000
index ec44c6c1675c25b9827aacd08c02433cccde7780..0000000000000000000000000000000000000000
--- a/third_party/googletest
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ec44c6c1675c25b9827aacd08c02433cccde7780
diff --git a/third_party/protobuf b/third_party/protobuf
deleted file mode 160000
index 4a0dd03e52e09332c8fd0f8f26a8e0ae9f911182..0000000000000000000000000000000000000000
--- a/third_party/protobuf
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4a0dd03e52e09332c8fd0f8f26a8e0ae9f911182