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

Unified Diff: chrome/test/unit/run_all_unittests.cc

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « chrome/test/unit/chrome_test_suite.cc ('k') | chrome/test/unit/win/rundebug.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/unit/run_all_unittests.cc
===================================================================
--- chrome/test/unit/run_all_unittests.cc (revision 94779)
+++ chrome/test/unit/run_all_unittests.cc (working copy)
@@ -1,51 +0,0 @@
-// 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.
-
-#include "chrome/test/unit/chrome_test_suite.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h"
-
-namespace {
-
-// A stubbed out webkit client impl.
-class UnitTestWebKitClient : public WebKit::WebKitClient {
- public:
- UnitTestWebKitClient() {
- }
-
- virtual void cryptographicallyRandomValues(
- unsigned char* buffer, size_t length) {
- memset(buffer, 0, length);
- }
-};
-
-// A special test suite that also initializes webkit once for all unittests.
-// This is useful for two reasons:
-// 1. It allows the use of some primitive webkit data types like WebString.
-// 2. Individual unittests should not be initting webkit on their own, initting
-// it here ensures attempts to do so within an individual test will fail.
-class UnitTestTestSuite : public ChromeTestSuite {
- public:
- UnitTestTestSuite(int argc, char** argv)
- : ChromeTestSuite(argc, argv) {
- }
-
- protected:
- virtual void Initialize() {
- WebKit::initialize(&webkitclient_);
- ChromeTestSuite::Initialize();
- }
- virtual void Shutdown() {
- ChromeTestSuite::Shutdown();
- WebKit::shutdown();
- }
-
- UnitTestWebKitClient webkitclient_;
-};
-
-} // namespace
-
-int main(int argc, char **argv) {
- return UnitTestTestSuite(argc, argv).Run();
-}
« no previous file with comments | « chrome/test/unit/chrome_test_suite.cc ('k') | chrome/test/unit/win/rundebug.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698