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

Unified Diff: base/supports_user_data_unittest.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « base/supports_user_data.cc ('k') | base/sync_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/supports_user_data_unittest.cc
diff --git a/base/supports_user_data_unittest.cc b/base/supports_user_data_unittest.cc
deleted file mode 100644
index faa814091cb4d1f4c91a2e25598739e9687db673..0000000000000000000000000000000000000000
--- a/base/supports_user_data_unittest.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 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/supports_user_data.h"
-
-#include <vector>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace base {
-namespace {
-
-struct TestSupportsUserData : public SupportsUserData {};
-
-struct UsesItself : public SupportsUserData::Data {
- UsesItself(SupportsUserData* supports_user_data, const void* key)
- : supports_user_data_(supports_user_data),
- key_(key) {
- }
-
- ~UsesItself() override {
- EXPECT_EQ(NULL, supports_user_data_->GetUserData(key_));
- }
-
- SupportsUserData* supports_user_data_;
- const void* key_;
-};
-
-TEST(SupportsUserDataTest, ClearWorksRecursively) {
- TestSupportsUserData supports_user_data;
- char key = 0;
- supports_user_data.SetUserData(&key,
- new UsesItself(&supports_user_data, &key));
- // Destruction of supports_user_data runs the actual test.
-}
-
-} // namespace
-} // namespace base
« no previous file with comments | « base/supports_user_data.cc ('k') | base/sync_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698