summaryrefslogtreecommitdiffstats
path: root/base/observer_list_unittest.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-05 17:52:10 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-05 17:52:10 +0000
commit3fe674d2d7302ed818deb074629cd9bc047ae2c7 (patch)
treede2537a1d3a92f354a8418b8157d2eb0cccf431e /base/observer_list_unittest.cc
parent405a731668e07cebf586fe44f9cf5f256517fede (diff)
downloadchromium_src-3fe674d2d7302ed818deb074629cd9bc047ae2c7.zip
chromium_src-3fe674d2d7302ed818deb074629cd9bc047ae2c7.tar.gz
chromium_src-3fe674d2d7302ed818deb074629cd9bc047ae2c7.tar.bz2
Working around a bug in VS2010 Express compiler causing two objects to be aliased while they clearly should not be.
BUG=121960 Review URL: http://codereview.chromium.org/9977012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/observer_list_unittest.cc')
-rw-r--r--base/observer_list_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc
index 034581f..d77414e 100644
--- a/base/observer_list_unittest.cc
+++ b/base/observer_list_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -236,6 +236,9 @@ TEST(ObserverListThreadSafeTest, RemoveObserver) {
new ObserverListThreadSafe<Foo>);
Adder a(1), b(1);
+ // A workaround for the compiler bug. See http://crbug.com/121960.
+ EXPECT_NE(&a, &b);
+
// Should do nothing.
observer_list->RemoveObserver(&a);
observer_list->RemoveObserver(&b);