| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <ostream> | 6 #include <ostream> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "mojo/public/cpp/environment/environment.h" | 9 #include "mojo/public/cpp/environment/environment.h" |
| 10 #include "mojo/public/cpp/system/macros.h" | 10 #include "mojo/public/cpp/system/macros.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 bool AcceptWithResponder(mojo::Message* message, | 306 bool AcceptWithResponder(mojo::Message* message, |
| 307 mojo::MessageReceiver* responder) override { | 307 mojo::MessageReceiver* responder) override { |
| 308 return false; | 308 return false; |
| 309 } | 309 } |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 class BindingsSampleTest : public testing::Test { | 312 class BindingsSampleTest : public testing::Test { |
| 313 public: | 313 public: |
| 314 BindingsSampleTest() {} | 314 BindingsSampleTest() {} |
| 315 virtual ~BindingsSampleTest() {} | 315 ~BindingsSampleTest() override {} |
| 316 | 316 |
| 317 private: | 317 private: |
| 318 mojo::Environment env_; | 318 mojo::Environment env_; |
| 319 | 319 |
| 320 MOJO_DISALLOW_COPY_AND_ASSIGN(BindingsSampleTest); | 320 MOJO_DISALLOW_COPY_AND_ASSIGN(BindingsSampleTest); |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 TEST_F(BindingsSampleTest, Basic) { | 323 TEST_F(BindingsSampleTest, Basic) { |
| 324 SimpleMessageReceiver receiver; | 324 SimpleMessageReceiver receiver; |
| 325 | 325 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 ASSERT_FALSE(defaults->a22.is_null()); | 368 ASSERT_FALSE(defaults->a22.is_null()); |
| 369 EXPECT_EQ(imported::SHAPE_RECTANGLE, defaults->a22->shape); | 369 EXPECT_EQ(imported::SHAPE_RECTANGLE, defaults->a22->shape); |
| 370 EXPECT_EQ(imported::COLOR_BLACK, defaults->a22->color); | 370 EXPECT_EQ(imported::COLOR_BLACK, defaults->a22->color); |
| 371 EXPECT_EQ(0xFFFFFFFFFFFFFFFFULL, defaults->a23); | 371 EXPECT_EQ(0xFFFFFFFFFFFFFFFFULL, defaults->a23); |
| 372 EXPECT_EQ(0x123456789, defaults->a24); | 372 EXPECT_EQ(0x123456789, defaults->a24); |
| 373 EXPECT_EQ(-0x123456789, defaults->a25); | 373 EXPECT_EQ(-0x123456789, defaults->a25); |
| 374 } | 374 } |
| 375 | 375 |
| 376 } // namespace | 376 } // namespace |
| 377 } // namespace sample | 377 } // namespace sample |
| OLD | NEW |