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/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 "components/bookmarks/core/browser/base_bookmark_model_observer.h" | 11 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
12 #include "components/bookmarks/core/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
13 #include "components/bookmarks/core/browser/bookmark_node_data.h" | 13 #include "components/bookmarks/browser/bookmark_node_data.h" |
14 #include "components/bookmarks/core/test/test_bookmark_client.h" | 14 #include "components/bookmarks/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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 EXPECT_EQ(2u, clone->GetMetaInfoMap()->size()); | 381 EXPECT_EQ(2u, clone->GetMetaInfoMap()->size()); |
382 std::string value; | 382 std::string value; |
383 EXPECT_TRUE(clone->GetMetaInfo("somekey", &value)); | 383 EXPECT_TRUE(clone->GetMetaInfo("somekey", &value)); |
384 EXPECT_EQ("somevalue", value); | 384 EXPECT_EQ("somevalue", value); |
385 EXPECT_TRUE(clone->GetMetaInfo("someotherkey", &value)); | 385 EXPECT_TRUE(clone->GetMetaInfo("someotherkey", &value)); |
386 EXPECT_EQ("someothervalue", value); | 386 EXPECT_EQ("someothervalue", value); |
387 } | 387 } |
388 | 388 |
389 } // namespace | 389 } // namespace |
390 } // namespace bookmark_utils | 390 } // namespace bookmark_utils |
OLD | NEW |