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

Side by Side Diff: mojo/public/cpp/bindings/tests/interface_unittest.cc

Issue 2244503002: mojo/public: Include gtest.h as "gtest/gtest.h", instead of via "absolute" path. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 5 #include <memory>
6 6
7 #include "gtest/gtest.h"
7 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" 8 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 using sample::SampleInterface; 10 using sample::SampleInterface;
11 using sample::SampleInterface_SampleMethod1_Params; 11 using sample::SampleInterface_SampleMethod1_Params;
12 using sample::SampleInterface_SampleMethod1_ResponseParams; 12 using sample::SampleInterface_SampleMethod1_ResponseParams;
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace test { 15 namespace test {
16 namespace { 16 namespace {
17 17
18 // Test the validity of the generated ordinals for interface methods. 18 // Test the validity of the generated ordinals for interface methods.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 auto* params_data = reinterpret_cast< 69 auto* params_data = reinterpret_cast<
70 sample::internal::SampleInterface_SampleMethod1_ResponseParams_Data*>( 70 sample::internal::SampleInterface_SampleMethod1_ResponseParams_Data*>(
71 bytes.get()); 71 bytes.get());
72 EXPECT_EQ(0UL, params_data->out1.offset); 72 EXPECT_EQ(0UL, params_data->out1.offset);
73 EXPECT_EQ(sample::Enum::VALUE, static_cast<sample::Enum>(params_data->out2)); 73 EXPECT_EQ(sample::Enum::VALUE, static_cast<sample::Enum>(params_data->out2));
74 } 74 }
75 75
76 } // namespace 76 } // namespace
77 } // namespace test 77 } // namespace test
78 } // namespace mojo 78 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc ('k') | mojo/public/cpp/bindings/tests/iterator_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698