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

Unified Diff: tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc

Issue 448693003: Fix bitrot in Chrome clang tool infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc
diff --git a/tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc b/tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc
deleted file mode 100644
index 8cdb486234a0fbd3e089e8378d219f68c0a5518a..0000000000000000000000000000000000000000
--- a/tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2013 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 "base/memory/scoped_ptr.h"
-
-void TestDeclarations() {
- scoped_ptr<int> a, b(new int), c;
- scoped_ptr_malloc<int> d;
-}
-
-void TestNew() {
- scoped_ptr<int>* a = new scoped_ptr<int>, *b = new scoped_ptr<int>(new int),
- *c = new scoped_ptr<int>;
-}
-
-class TestInitializers {
- public:
- TestInitializers() {}
- TestInitializers(bool) {}
- TestInitializers(double)
- : b(new int), c(), f(static_cast<int*>(malloc(sizeof(int)))) {}
-
- private:
- scoped_ptr<int> a;
- scoped_ptr<int> b;
- scoped_ptr<int> c;
- scoped_ptr_malloc<int> d;
- scoped_ptr_malloc<int> e;
- scoped_ptr_malloc<int> f;
-};
-
-scoped_ptr<int> TestTemporaries(scoped_ptr<int> a, scoped_ptr<int> b) {
- scoped_ptr<int> c =
- TestTemporaries(scoped_ptr<int>(), scoped_ptr<int>(new int));
- return scoped_ptr<int>();
-}

Powered by Google App Engine
This is Rietveld 408576698