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

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

Issue 291173010: Mojo: Mojom: Remove support for octal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/bindings/allocation_scope.h" 9 #include "mojo/public/cpp/bindings/allocation_scope.h"
10 #include "mojo/public/cpp/environment/environment.h" 10 #include "mojo/public/cpp/environment/environment.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 EXPECT_EQ(1234, full.a2()); 367 EXPECT_EQ(1234, full.a2());
368 EXPECT_EQ(34567U, full.a3()); 368 EXPECT_EQ(34567U, full.a3());
369 EXPECT_EQ(123456, full.a4()); 369 EXPECT_EQ(123456, full.a4());
370 // TODO(vtl): crbug.com/375522 370 // TODO(vtl): crbug.com/375522
371 // EXPECT_EQ(3456789012U, full.a5()); 371 // EXPECT_EQ(3456789012U, full.a5());
372 EXPECT_EQ(111111111111LL, full.a6()); 372 EXPECT_EQ(111111111111LL, full.a6());
373 // TODO(vtl): crbug.com/375522 373 // TODO(vtl): crbug.com/375522
374 // EXPECT_EQ(9999999999999999999ULL, full.a7()); 374 // EXPECT_EQ(9999999999999999999ULL, full.a7());
375 EXPECT_EQ(0x12345, full.a8()); 375 EXPECT_EQ(0x12345, full.a8());
376 EXPECT_EQ(-0x12345, full.a9()); 376 EXPECT_EQ(-0x12345, full.a9());
377 // TODO(vtl): crbug.com/375829 377 EXPECT_EQ(1234, full.a10());
378 // EXPECT_EQ(8, full.a10()); 378 EXPECT_TRUE(full.a11());
379 // EXPECT_EQ(-8, full.a11()); 379 EXPECT_FALSE(full.a12());
380 EXPECT_EQ(1234, full.a12()); 380 EXPECT_FLOAT_EQ(123.25f, full.a13());
381 EXPECT_TRUE(full.a13()); 381 EXPECT_DOUBLE_EQ(1234567890.123, full.a14());
382 EXPECT_FALSE(full.a14()); 382 EXPECT_DOUBLE_EQ(1E10, full.a15());
383 EXPECT_FLOAT_EQ(123.25f, full.a15()); 383 EXPECT_DOUBLE_EQ(-1.2E+20, full.a16());
384 EXPECT_DOUBLE_EQ(1234567890.123, full.a16()); 384 EXPECT_DOUBLE_EQ(1.23E-20, full.a17());
385 EXPECT_DOUBLE_EQ(1E10, full.a17()); 385 EXPECT_TRUE(full.a18().is_null());
386 EXPECT_DOUBLE_EQ(-1.2E+20, full.a18()); 386 EXPECT_TRUE(full.a19().is_null());
387 EXPECT_DOUBLE_EQ(1.23E-20, full.a19());
388 EXPECT_TRUE(full.a20().is_null()); 387 EXPECT_TRUE(full.a20().is_null());
389 EXPECT_TRUE(full.a21().is_null());
390 EXPECT_TRUE(full.a22().is_null());
391 } 388 }
392 389
393 } // namespace 390 } // namespace
394 } // namespace sample 391 } // namespace sample
OLDNEW
« no previous file with comments | « mojo/apps/js/bindings/sample_service_unittests.js ('k') | mojo/public/interfaces/bindings/tests/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698