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

Side by Side Diff: base/callback_unittest.nc

Issue 1388793003: Describe .nc files as "No Compile Test" suites and link doc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « base/callback_list_unittest.nc ('k') | base/memory/scoped_ptr_unittest.nc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is a "No Compile Test" suite.
6 // http://dev.chromium.org/developers/testing/no-compile-tests
7
5 #include "base/callback.h" 8 #include "base/callback.h"
6 9
7 namespace base { 10 namespace base {
8 11
9 class Parent { 12 class Parent {
10 }; 13 };
11 14
12 class Child : Parent { 15 class Child : Parent {
13 }; 16 };
14 17
(...skipping 26 matching lines...) Expand all
41 // See explanation for NCTEST_CONSTRUCTION_FROM_SUBTYPE 44 // See explanation for NCTEST_CONSTRUCTION_FROM_SUBTYPE
42 void WontCompile() { 45 void WontCompile() {
43 Callback<Parent(void)> cb_a; 46 Callback<Parent(void)> cb_a;
44 Callback<Child(void)> cb_b; 47 Callback<Child(void)> cb_b;
45 cb_a = cb_b; 48 cb_a = cb_b;
46 } 49 }
47 50
48 #endif 51 #endif
49 52
50 } // namespace base 53 } // namespace base
OLDNEW
« no previous file with comments | « base/callback_list_unittest.nc ('k') | base/memory/scoped_ptr_unittest.nc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698