OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "dbus/values_util.h" | 5 #include "dbus/values_util.h" |
6 | 6 |
7 #include <cmath> | |
Mark Mentovai
2015/04/09 15:42:15
Or this one.
| |
7 #include <vector> | 8 #include <vector> |
8 | 9 |
9 #include "base/float_util.h" | |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "dbus/message.h" | 13 #include "dbus/message.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace dbus { | 16 namespace dbus { |
17 | 17 |
18 TEST(ValuesUtilTest, PopBasicTypes) { | 18 TEST(ValuesUtilTest, PopBasicTypes) { |
19 scoped_ptr<Response> response(Response::CreateEmpty()); | 19 scoped_ptr<Response> response(Response::CreateEmpty()); |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
681 scoped_ptr<base::Value> value; | 681 scoped_ptr<base::Value> value; |
682 value.reset(PopDataAsValue(&reader)); | 682 value.reset(PopDataAsValue(&reader)); |
683 ASSERT_TRUE(value.get() != NULL); | 683 ASSERT_TRUE(value.get() != NULL); |
684 EXPECT_TRUE(value->Equals(&test_list)); | 684 EXPECT_TRUE(value->Equals(&test_list)); |
685 value.reset(PopDataAsValue(&reader)); | 685 value.reset(PopDataAsValue(&reader)); |
686 ASSERT_TRUE(value.get() != NULL); | 686 ASSERT_TRUE(value.get() != NULL); |
687 EXPECT_TRUE(value->Equals(&int_value)); | 687 EXPECT_TRUE(value->Equals(&int_value)); |
688 } | 688 } |
689 | 689 |
690 } // namespace dbus | 690 } // namespace dbus |
OLD | NEW |