OLD | NEW |
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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 ->get_struct() | 543 ->get_struct() |
544 .value); | 544 .value); |
545 quit_closure.Run(); | 545 quit_closure.Run(); |
546 | 546 |
547 }, | 547 }, |
548 loop.QuitClosure())); | 548 loop.QuitClosure())); |
549 loop.Run(); | 549 loop.Run(); |
550 } | 550 } |
551 } | 551 } |
552 | 552 |
| 553 TEST_F(StructTraitsTest, DefaultValueOfEnumWithTraits) { |
| 554 auto container = EnumWithTraitsContainer::New(); |
| 555 EXPECT_EQ(EnumWithTraitsImpl::CUSTOM_VALUE_1, container->f_field); |
| 556 } |
| 557 |
553 } // namespace test | 558 } // namespace test |
554 } // namespace mojo | 559 } // namespace mojo |
OLD | NEW |