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_utils.h" | 5 #include "components/bookmarks/browser/bookmark_utils.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
| 11 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
11 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 15 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
12 #include "components/bookmarks/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
13 #include "components/bookmarks/browser/bookmark_node_data.h" | 17 #include "components/bookmarks/browser/bookmark_node_data.h" |
14 #include "components/bookmarks/test/test_bookmark_client.h" | 18 #include "components/bookmarks/test/test_bookmark_client.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/base/clipboard/clipboard.h" | 20 #include "ui/base/clipboard/clipboard.h" |
17 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 21 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
18 | 22 |
19 using base::ASCIIToUTF16; | 23 using base::ASCIIToUTF16; |
20 using std::string; | 24 using std::string; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 model->GetNodesByURL(url, &nodes); | 608 model->GetNodesByURL(url, &nodes); |
605 ASSERT_EQ(1u, nodes.size()); | 609 ASSERT_EQ(1u, nodes.size()); |
606 EXPECT_TRUE(model->bookmark_bar_node()->empty()); | 610 EXPECT_TRUE(model->bookmark_bar_node()->empty()); |
607 EXPECT_TRUE(model->other_node()->empty()); | 611 EXPECT_TRUE(model->other_node()->empty()); |
608 EXPECT_TRUE(model->mobile_node()->empty()); | 612 EXPECT_TRUE(model->mobile_node()->empty()); |
609 EXPECT_EQ(1, extra_node->child_count()); | 613 EXPECT_EQ(1, extra_node->child_count()); |
610 } | 614 } |
611 | 615 |
612 } // namespace | 616 } // namespace |
613 } // namespace bookmarks | 617 } // namespace bookmarks |
OLD | NEW |