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

Unified Diff: tools/clang/rewrite_scoped_refptr/tests/scoped_refptr.h

Issue 1709343002: Remove tools/clang (this will break things temporarily). Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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_refptr/tests/scoped_refptr.h
diff --git a/tools/clang/rewrite_scoped_refptr/tests/scoped_refptr.h b/tools/clang/rewrite_scoped_refptr/tests/scoped_refptr.h
deleted file mode 100644
index 1ebd323358b650ecef338a18ae3013407ee9d9f5..0000000000000000000000000000000000000000
--- a/tools/clang/rewrite_scoped_refptr/tests/scoped_refptr.h
+++ /dev/null
@@ -1,43 +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.
-
-#ifndef SCOPED_REFPTR_H_
-#define SCOPED_REFPTR_H_
-
-// Stub scoped_refptr<T> class that supports an implicit cast to T*.
-template <class T>
-class scoped_refptr {
- public:
- typedef T element_type;
- scoped_refptr() : ptr_(0) {}
- scoped_refptr(T* p) : ptr_(p) {}
- scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {}
-
- template <typename U>
- scoped_refptr(const scoped_refptr<U>& r)
- : ptr_(r.get()) {}
-
- ~scoped_refptr() {}
-
- T* get() const { return ptr_; }
- operator T*() const { return ptr_; }
- T* operator->() const { return ptr_; }
-
- scoped_refptr<T>& operator=(T* p) {
- ptr_ = p;
- return *this;
- }
- scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
- return *this = r.ptr_;
- }
- template <typename U>
- scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
- return *this = r.get();
- }
-
- protected:
- T* ptr_;
-};
-
-#endif // SCOPED_REFPTR_H_

Powered by Google App Engine
This is Rietveld 408576698