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

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

Issue 644963004: Some more virtual/override updates. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 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
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
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/router_unittest.cc ('k') | mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698