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

Side by Side Diff: mojo/public/interfaces/bindings/tests/test_export.mojom

Issue 2244363003: Mojo C++ bindings: disallow copy and assign for generated classes when necessary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the actual fix Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo.test.test_export;
6
7 struct StringPair {
8 string s1;
9 string s2;
10 };
11
12 // This is a regression test. On Windows, if we export the generated class *and*
13 // not explicitly disallow copy constructor and assign operator, compilation
14 // will fail because it tries to use copy constructor of
15 // InlinedStructPtr<StringPair>.
16 struct StringPairContainer {
17 array<StringPair> pairs;
18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698