summaryrefslogtreecommitdiffstats
path: root/build/temp_gyp/googleurl_test_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'build/temp_gyp/googleurl_test_main.cc')
-rw-r--r--build/temp_gyp/googleurl_test_main.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/temp_gyp/googleurl_test_main.cc b/build/temp_gyp/googleurl_test_main.cc
new file mode 100644
index 0000000..aecf095
--- /dev/null
+++ b/build/temp_gyp/googleurl_test_main.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2011 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.
+
+// This is a replacement for ../../googleurl/src/gurl_test_main.cc. The
+// unittest is being built for a Chromium tree, so ICU needs to be initialized
+// how the Chromium tree expects which is different than what is in the
+// GoogleURL version.
+
+#include "base/i18n/icu_util.h"
+#include "base/mac/scoped_nsautorelease_pool.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+int main(int argc, char** argv) {
+ base::mac::ScopedNSAutoreleasePool scoped_pool;
+
+ testing::InitGoogleTest(&argc, argv);
+
+ icu_util::Initialize();
+
+ return RUN_ALL_TESTS();
+}