| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 #include "content/browser/mojo/merge_dictionary.h" | 6 #include "content/browser/service_manager/merge_dictionary.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 using MergeDictionaryTest = testing::Test; | 11 using MergeDictionaryTest = testing::Test; |
| 12 | 12 |
| 13 TEST(MergeDictionaryTest, Merge) { | 13 TEST(MergeDictionaryTest, Merge) { |
| 14 // |source| & |target| have three properties, "string", "list" and | 14 // |source| & |target| have three properties, "string", "list" and |
| 15 // "dictionary", which are then merged. | 15 // "dictionary", which are then merged. |
| 16 base::DictionaryValue target; | 16 base::DictionaryValue target; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 std::string a, b, c; | 64 std::string a, b, c; |
| 65 EXPECT_TRUE(out_list->GetString(0, &a)); | 65 EXPECT_TRUE(out_list->GetString(0, &a)); |
| 66 EXPECT_TRUE(out_list->GetString(1, &b)); | 66 EXPECT_TRUE(out_list->GetString(1, &b)); |
| 67 EXPECT_TRUE(out_list->GetString(2, &c)); | 67 EXPECT_TRUE(out_list->GetString(2, &c)); |
| 68 EXPECT_EQ("A", a); | 68 EXPECT_EQ("A", a); |
| 69 EXPECT_EQ("B", b); | 69 EXPECT_EQ("B", b); |
| 70 EXPECT_EQ("C", c); | 70 EXPECT_EQ("C", c); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace content | 73 } // namespace content |
| OLD | NEW |