| OLD | NEW |
| 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 "components/bookmarks/browser/bookmark_node_data.h" | 5 #include "components/bookmarks/browser/bookmark_node_data.h" |
| 6 | 6 |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 12 #include "components/bookmarks/browser/bookmark_model.h" | 13 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "components/bookmarks/test/bookmark_test_helpers.h" | 14 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 14 #include "components/bookmarks/test/test_bookmark_client.h" | 15 #include "components/bookmarks/test/test_bookmark_client.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
| 17 #include "ui/base/dragdrop/os_exchange_data.h" | 18 #include "ui/base/dragdrop/os_exchange_data.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 ASSERT_EQ(1u, read_data.size()); | 398 ASSERT_EQ(1u, read_data.size()); |
| 398 | 399 |
| 399 // Verify that the read data contains the same meta info. | 400 // Verify that the read data contains the same meta info. |
| 400 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map; | 401 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map; |
| 401 EXPECT_EQ(2u, meta_info_map.size()); | 402 EXPECT_EQ(2u, meta_info_map.size()); |
| 402 EXPECT_EQ("somevalue", meta_info_map["somekey"]); | 403 EXPECT_EQ("somevalue", meta_info_map["somekey"]); |
| 403 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]); | 404 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]); |
| 404 } | 405 } |
| 405 | 406 |
| 406 } // namespace bookmarks | 407 } // namespace bookmarks |
| OLD | NEW |