diff options
author | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 00:41:43 +0000 |
---|---|---|
committer | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 00:41:43 +0000 |
commit | 236c3feac542f868d7f2ddc7f62e98f9bc3196c3 (patch) | |
tree | 7e09550da9e4854816d369d564b36bb353ec03df /views/run_all_unittests.cc | |
parent | 7f05552488f8f9ea5000512fd1972894aee7ee82 (diff) | |
download | chromium_src-236c3feac542f868d7f2ddc7f62e98f9bc3196c3.zip chromium_src-236c3feac542f868d7f2ddc7f62e98f9bc3196c3.tar.gz chromium_src-236c3feac542f868d7f2ddc7f62e98f9bc3196c3.tar.bz2 |
Factoring out views related unit-tests in their own exe.
BUG=None
TEST=Run view_unit_tests should run successfully on Windows and Linux toolkit views.
Review URL: http://codereview.chromium.org/3256008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/run_all_unittests.cc')
-rw-r--r-- | views/run_all_unittests.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/views/run_all_unittests.cc b/views/run_all_unittests.cc new file mode 100644 index 0000000..78ae07a --- /dev/null +++ b/views/run_all_unittests.cc @@ -0,0 +1,23 @@ +// Copyright (c) 2010 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 "app/app_paths.h" +#include "app/resource_bundle.h" +#include "base/test/test_suite.h" + +class ViewTestSuite : public base::TestSuite { + public: + ViewTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} + + protected: + virtual void Initialize() { + app::RegisterPathProvider(); + base::TestSuite::Initialize(); + ResourceBundle::InitSharedInstance("en-US"); + } +}; + +int main(int argc, char **argv) { + return ViewTestSuite(argc, argv).Run(); +} |