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

Side by Side Diff: mojo/public/c/bindings/tests/validation_unittest.cc

Issue 2232833003: Change the canonical way to include the C bindings headers to <mojo/bindings/*.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_mojo_tests
Patch Set: rebased 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
« no previous file with comments | « mojo/public/c/bindings/tests/union_unittest.cc ('k') | mojo/public/c/bindings/union.h » ('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 2016 The Chromium Authors. All rights reserved. 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 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 // TODO(vardhan): There is some duplicate code here borrowed from 5 // TODO(vardhan): There is some duplicate code here borrowed from
6 // mojo/public/cpp/bindings/tests/validation_unittest.cc; extract it into a 6 // mojo/public/cpp/bindings/tests/validation_unittest.cc; extract it into a
7 // library, and share? 7 // library, and share?
8 8
9 #include <mojo/bindings/internal/util.h>
10 #include <mojo/bindings/message.h>
11 #include <mojo/bindings/struct.h>
9 #include <stdio.h> 12 #include <stdio.h>
13
10 #include <functional> 14 #include <functional>
11 #include <string> 15 #include <string>
12 16
13 #include "mojo/public/c/bindings/lib/util.h"
14 #include "mojo/public/c/bindings/message.h"
15 #include "mojo/public/c/bindings/struct.h"
16 #include "mojo/public/cpp/bindings/tests/validation_util.h" 17 #include "mojo/public/cpp/bindings/tests/validation_util.h"
17 #include "mojo/public/cpp/system/macros.h" 18 #include "mojo/public/cpp/system/macros.h"
18 #include "mojo/public/cpp/test_support/test_support.h" 19 #include "mojo/public/cpp/test_support/test_support.h"
19 #include "mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom -c.h" 20 #include "mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom -c.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
22 using mojo::test::EnumerateSourceRootRelativeDirectory; 23 using mojo::test::EnumerateSourceRootRelativeDirectory;
23 24
24 namespace mojo { 25 namespace mojo {
25 namespace test { 26 namespace test {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 TEST(ValidationTest, ResponseBoundsCheck) { 261 TEST(ValidationTest, ResponseBoundsCheck) {
261 RunValidationTests("resp_boundscheck_", 262 RunValidationTests("resp_boundscheck_",
262 DispatchBoundsCheckTestInterface_Response_Validate); 263 DispatchBoundsCheckTestInterface_Response_Validate);
263 } 264 }
264 265
265 // TODO(vardhan): Tests for "integration_" files. 266 // TODO(vardhan): Tests for "integration_" files.
266 267
267 } // namespace 268 } // namespace
268 } // namespace test 269 } // namespace test
269 } // namespace mojo 270 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/c/bindings/tests/union_unittest.cc ('k') | mojo/public/c/bindings/union.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698