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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/float_util.h" | |
10 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "dbus/message.h" | 12 #include "dbus/message.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
16 namespace dbus { | 15 namespace dbus { |
17 | 16 |
18 TEST(ValuesUtilTest, PopBasicTypes) { | 17 TEST(ValuesUtilTest, PopBasicTypes) { |
19 scoped_ptr<Response> response(Response::CreateEmpty()); | 18 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; | 680 scoped_ptr<base::Value> value; |
682 value.reset(PopDataAsValue(&reader)); | 681 value.reset(PopDataAsValue(&reader)); |
683 ASSERT_TRUE(value.get() != NULL); | 682 ASSERT_TRUE(value.get() != NULL); |
684 EXPECT_TRUE(value->Equals(&test_list)); | 683 EXPECT_TRUE(value->Equals(&test_list)); |
685 value.reset(PopDataAsValue(&reader)); | 684 value.reset(PopDataAsValue(&reader)); |
686 ASSERT_TRUE(value.get() != NULL); | 685 ASSERT_TRUE(value.get() != NULL); |
687 EXPECT_TRUE(value->Equals(&int_value)); | 686 EXPECT_TRUE(value->Equals(&int_value)); |
688 } | 687 } |
689 | 688 |
690 } // namespace dbus | 689 } // namespace dbus |
OLD | NEW |