Index: base/test/main_stub.cc |
diff --git a/base/test/main_stub.cc b/base/test/main_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4bcb1a8684cfaac1f9017f94d1418ffbce5a223 |
--- /dev/null |
+++ b/base/test/main_stub.cc |
@@ -0,0 +1,12 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "base/logging.h" |
+ |
+int main(int argc, char** argv) { |
+ // This is used so we can link with base:test_support even for components that |
+ // don't have a main function. |
+ NOTREACHED(); |
+ return 1; |
+} |