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_model.h" | 5 #include "components/bookmarks/browser/bookmark_model.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <set> | 10 #include <set> |
8 #include <string> | 11 #include <string> |
9 | 12 |
10 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
11 #include "base/command_line.h" | 14 #include "base/command_line.h" |
12 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
13 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/macros.h" |
14 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
15 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_split.h" | 20 #include "base/strings/string_split.h" |
17 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
19 #include "base/time/time.h" | 23 #include "base/time/time.h" |
20 #include "components/bookmarks/browser/bookmark_model_observer.h" | 24 #include "components/bookmarks/browser/bookmark_model_observer.h" |
21 #include "components/bookmarks/browser/bookmark_undo_delegate.h" | 25 #include "components/bookmarks/browser/bookmark_undo_delegate.h" |
22 #include "components/bookmarks/browser/bookmark_utils.h" | 26 #include "components/bookmarks/browser/bookmark_utils.h" |
23 #include "components/bookmarks/test/bookmark_test_helpers.h" | 27 #include "components/bookmarks/test/bookmark_test_helpers.h" |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 std::set<GURL> changed_page_urls; | 1394 std::set<GURL> changed_page_urls; |
1391 changed_page_urls.insert(kPageURL1); | 1395 changed_page_urls.insert(kPageURL1); |
1392 model_->OnFaviconsChanged(changed_page_urls, kFaviconURL12); | 1396 model_->OnFaviconsChanged(changed_page_urls, kFaviconURL12); |
1393 ASSERT_EQ(2u, updated_nodes_.size()); | 1397 ASSERT_EQ(2u, updated_nodes_.size()); |
1394 EXPECT_TRUE(WasNodeUpdated(node1)); | 1398 EXPECT_TRUE(WasNodeUpdated(node1)); |
1395 EXPECT_TRUE(WasNodeUpdated(node2)); | 1399 EXPECT_TRUE(WasNodeUpdated(node2)); |
1396 } | 1400 } |
1397 } | 1401 } |
1398 | 1402 |
1399 } // namespace bookmarks | 1403 } // namespace bookmarks |
OLD | NEW |