aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_config_test.cc
diff options
context:
space:
mode:
authorThomas Holenstein <tholenst@google.com>2018-09-19 02:08:37 -0700
committerTink Team <noreply@google.com>2018-09-20 16:20:17 -0700
commit6a4c9498f5f4ca81812a4ea8916ee617a45863ac (patch)
treeafa312b1e14cc0779966c44f19ff7e7632d3b7f3 /cc/mac/mac_config_test.cc
parentd3baf8181d91d073c475ddbfa962674fc6a639af (diff)
downloadtink-6a4c9498f5f4ca81812a4ea8916ee617a45863ac.tar.gz
Remove the main files from (hopefully) all tests.
Our tests are linked with gunit_main (or gunit_main_no_google3), which means that main is already defined in another translation unit. Having two main functions violates ODR and hence can result in undefined behavior. There is no need to fear losing tests. If a build system tries to run a test and there is no main function, then it will fail. Hence, i cannot see a way for this to stop testing a test. PiperOrigin-RevId: 213593596 GitOrigin-RevId: 1fd8b2dcc18d24901d77170082587557cc5303e3
Diffstat (limited to 'cc/mac/mac_config_test.cc')
-rw-r--r--cc/mac/mac_config_test.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/cc/mac/mac_config_test.cc b/cc/mac/mac_config_test.cc
index 417dcc4b3..38e7de96b 100644
--- a/cc/mac/mac_config_test.cc
+++ b/cc/mac/mac_config_test.cc
@@ -23,7 +23,6 @@
#include "tink/util/status.h"
#include "gtest/gtest.h"
-
namespace crypto {
namespace tink {
namespace {
@@ -104,9 +103,3 @@ TEST_F(MacConfigTest, testRegister) {
} // namespace
} // namespace tink
} // namespace crypto
-
-
-int main(int ac, char* av[]) {
- testing::InitGoogleTest(&ac, av);
- return RUN_ALL_TESTS();
-}