| 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 "components/bookmarks/core/browser/bookmark_utils.h" | 5 #include "components/bookmarks/core/browser/bookmark_utils.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/bookmarks/test_bookmark_client.h" | |
| 12 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" | 11 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" |
| 13 #include "components/bookmarks/core/browser/bookmark_model.h" | 12 #include "components/bookmarks/core/browser/bookmark_model.h" |
| 14 #include "components/bookmarks/core/browser/bookmark_node_data.h" | 13 #include "components/bookmarks/core/browser/bookmark_node_data.h" |
| 14 #include "components/bookmarks/core/test/test_bookmark_client.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/base/clipboard/clipboard.h" | 16 #include "ui/base/clipboard/clipboard.h" |
| 17 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 17 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 18 | 18 |
| 19 using base::ASCIIToUTF16; | 19 using base::ASCIIToUTF16; |
| 20 using std::string; | 20 using std::string; |
| 21 | 21 |
| 22 namespace bookmark_utils { | 22 namespace bookmark_utils { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 EXPECT_EQ(2u, clone->GetMetaInfoMap()->size()); | 375 EXPECT_EQ(2u, clone->GetMetaInfoMap()->size()); |
| 376 std::string value; | 376 std::string value; |
| 377 EXPECT_TRUE(clone->GetMetaInfo("somekey", &value)); | 377 EXPECT_TRUE(clone->GetMetaInfo("somekey", &value)); |
| 378 EXPECT_EQ("somevalue", value); | 378 EXPECT_EQ("somevalue", value); |
| 379 EXPECT_TRUE(clone->GetMetaInfo("someotherkey", &value)); | 379 EXPECT_TRUE(clone->GetMetaInfo("someotherkey", &value)); |
| 380 EXPECT_EQ("someothervalue", value); | 380 EXPECT_EQ("someothervalue", value); |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace | 383 } // namespace |
| 384 } // namespace bookmark_utils | 384 } // namespace bookmark_utils |
| OLD | NEW |