summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/sync/notifier/listener/listener_unittest.cc10
-rw-r--r--chrome/browser/sync/syncable/syncable_unittest.cc21
-rw-r--r--chrome/browser/sync/util/event_sys_unittest.cc4
3 files changed, 2 insertions, 33 deletions
diff --git a/chrome/browser/sync/notifier/listener/listener_unittest.cc b/chrome/browser/sync/notifier/listener/listener_unittest.cc
deleted file mode 100644
index 26697d6..0000000
--- a/chrome/browser/sync/notifier/listener/listener_unittest.cc
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright (c) 2009 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 "testing/gtest/include/gtest/gtest.h"
-
-int main(int argc, char **argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
diff --git a/chrome/browser/sync/syncable/syncable_unittest.cc b/chrome/browser/sync/syncable/syncable_unittest.cc
index 49424f9..41ad4d5 100644
--- a/chrome/browser/sync/syncable/syncable_unittest.cc
+++ b/chrome/browser/sync/syncable/syncable_unittest.cc
@@ -1533,24 +1533,3 @@ TEST_F(SyncableDirectoryTest, Bug1509232) {
}
} // namespace syncable
-
-#ifdef OS_WIN
-class LocalModule : public CAtlExeModuleT<LocalModule> { };
-LocalModule module_;
-
-int main(int argc, char* argv[]) {
- testing::InitGoogleTest(&argc, argv);
-
- // TODO(chron) Add method to change random seed.
- const int32 test_random_seed = time(NULL);
- cout << "Random seed: " << test_random_seed << endl;
- LOG(INFO) << "Random seed: " << test_random_seed << endl;
- srand(test_random_seed);
-
- // Necessary for NewCallback, scoped to main
- base::AtExitManager at_exit_manager;
-
- int result = RUN_ALL_TESTS();
- return result;
-}
-#endif
diff --git a/chrome/browser/sync/util/event_sys_unittest.cc b/chrome/browser/sync/util/event_sys_unittest.cc
index 0e1b112..99ee408 100644
--- a/chrome/browser/sync/util/event_sys_unittest.cc
+++ b/chrome/browser/sync/util/event_sys_unittest.cc
@@ -152,7 +152,7 @@ class ThreadTester : public EventListener<TestEvent> {
}
~ThreadTester() {
pair_->event_channel()->RemoveListener(this);
- for (int i = 0; i < threads_.size(); i++) {
+ for (size_t i = 0; i < threads_.size(); i++) {
CHECK(pthread_join(threads_[i].thread, NULL) == 0);
delete threads_[i].completed;
}
@@ -229,7 +229,7 @@ class ThreadTester : public EventListener<TestEvent> {
sleep(1);
#endif
- for (int i = 0; i < threads_.size(); i++) {
+ for (size_t i = 0; i < threads_.size(); i++) {
if (*(threads_[i].completed))
LOG(FATAL) << "A test thread exited too early.";
}