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

Unified Diff: content/test/unittest_test_suite.cc

Issue 10826311: Move the corresponding cc files from content\test to be alongside their headers in content\public\t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « content/test/test_utils.cc ('k') | content/test/web_contents_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/unittest_test_suite.cc
===================================================================
--- content/test/unittest_test_suite.cc (revision 151499)
+++ content/test/unittest_test_suite.cc (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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 "content/public/test/unittest_test_suite.h"
-
-#include "base/logging.h"
-#include "base/rand_util.h"
-#include "base/test/test_suite.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h"
-
-namespace content {
-
-// A stubbed out WebKit platform support impl.
-class UnitTestTestSuite::UnitTestWebKitPlatformSupport
- : public WebKit::WebKitPlatformSupport {
- public:
- UnitTestWebKitPlatformSupport() {}
- virtual ~UnitTestWebKitPlatformSupport() {}
- virtual void cryptographicallyRandomValues(unsigned char* buffer,
- size_t length) OVERRIDE {
- base::RandBytes(buffer, length);
- }
- virtual const unsigned char* getTraceCategoryEnabledFlag(
- const char* categoryName) {
- // Causes tracing macros to be disabled.
- static const unsigned char kEnabled = 0;
- return &kEnabled;
- }
-};
-
-UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
- : test_suite_(test_suite) {
- DCHECK(test_suite);
- webkit_platform_support_.reset(new UnitTestWebKitPlatformSupport);
- WebKit::initialize(webkit_platform_support_.get());
-}
-
-UnitTestTestSuite::~UnitTestTestSuite() {
- WebKit::shutdown();
-}
-
-int UnitTestTestSuite::Run() {
- return test_suite_->Run();
-}
-
-} // namespace content
« no previous file with comments | « content/test/test_utils.cc ('k') | content/test/web_contents_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698