Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: build/temp_gyp/googleurl_test_main.cc

Issue 6532003: Move googleurl's unittest to use a custom main so ICU can be started up in... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/temp_gyp/googleurl.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/temp_gyp/googleurl_test_main.cc
===================================================================
--- build/temp_gyp/googleurl_test_main.cc (revision 0)
+++ build/temp_gyp/googleurl_test_main.cc (revision 0)
@@ -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 then what is in the
Mark Mentovai 2011/02/16 21:31:33 than
+// 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);
Mark Mentovai 2011/02/16 21:31:33 Why is this one fully-qualified with the :: up fro
+
+ icu_util::Initialize();
+
+ return RUN_ALL_TESTS();
+}
Property changes on: build/temp_gyp/googleurl_test_main.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « build/temp_gyp/googleurl.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698