From c109691b7032671759ba4375ef703f4b0784dd3d Mon Sep 17 00:00:00 2001 From: "sverrir@google.com" Date: Thu, 9 Jul 2009 21:38:38 +0000 Subject: Make the printint_unittest use the correct test harness. This removes the need for an AtExitManager in one of the tests (which is just plain wrong). BUG=none TEST=no functional change (printing_unittests should run successfully). Review URL: http://codereview.chromium.org/149407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20319 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/page_overlays_unittest.cc | 3 --- printing/printing.gyp | 1 + printing/run_all_unittests.cc | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'printing') diff --git a/printing/page_overlays_unittest.cc b/printing/page_overlays_unittest.cc index 2d1bdac..ccdc15a 100644 --- a/printing/page_overlays_unittest.cc +++ b/printing/page_overlays_unittest.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/at_exit.h" #include "base/message_loop.h" #include "base/string_util.h" #include "printing/page_overlays.h" @@ -14,8 +13,6 @@ namespace { -base::AtExitManager global_at_exit_manager; - class PageOverlaysTest : public testing::Test { private: MessageLoop message_loop_; diff --git a/printing/printing.gyp b/printing/printing.gyp index e0f1d38..8dd7a59 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -89,6 +89,7 @@ 'page_range_unittest.cc', 'page_setup_unittest.cc', 'printing_context_win_unittest.cc', + 'run_all_unittests.cc', 'units_unittest.cc', ], 'conditions': [ diff --git a/printing/run_all_unittests.cc b/printing/run_all_unittests.cc index d9f6b58..63b8020 100644 --- a/printing/run_all_unittests.cc +++ b/printing/run_all_unittests.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/test_suite.h" +#include "app/test_suite.h" int main(int argc, char** argv) { - return TestSuite(argc, argv).Run(); + return AppTestSuite(argc, argv).Run(); } -- cgit v1.1