OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
17 #include "base/string_split.h" | 17 #include "base/string_split.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/bookmarks/bookmark_model.h" | 20 #include "chrome/browser/bookmarks/bookmark_model.h" |
21 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 21 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
22 #include "chrome/browser/bookmarks/bookmark_utils.h" | 22 #include "chrome/browser/bookmarks/bookmark_utils.h" |
23 #include "chrome/browser/history/history_notifications.h" | 23 #include "chrome/browser/history/history_notifications.h" |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_notification_types.h" | 25 #include "chrome/common/chrome_notification_types.h" |
26 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/test/base/model_test_utils.h" | 28 #include "chrome/test/base/model_test_utils.h" |
| 29 #include "chrome/test/base/testing_browser_process_test.h" |
29 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" |
30 #include "chrome/test/testing_browser_process_test.h" | |
31 #include "content/browser/browser_thread.h" | 31 #include "content/browser/browser_thread.h" |
32 #include "content/common/notification_details.h" | 32 #include "content/common/notification_details.h" |
33 #include "content/common/notification_registrar.h" | 33 #include "content/common/notification_registrar.h" |
34 #include "content/common/notification_source.h" | 34 #include "content/common/notification_source.h" |
35 #include "testing/gtest/include/gtest/gtest.h" | 35 #include "testing/gtest/include/gtest/gtest.h" |
36 #include "ui/base/models/tree_node_iterator.h" | 36 #include "ui/base/models/tree_node_iterator.h" |
37 #include "ui/base/models/tree_node_model.h" | 37 #include "ui/base/models/tree_node_model.h" |
38 | 38 |
39 using base::Time; | 39 using base::Time; |
40 using base::TimeDelta; | 40 using base::TimeDelta; |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 TEST_F(BookmarkModelTest, SyncNodeVisibileWithChildren) { | 1036 TEST_F(BookmarkModelTest, SyncNodeVisibileWithChildren) { |
1037 const BookmarkNode* root = model_.synced_node(); | 1037 const BookmarkNode* root = model_.synced_node(); |
1038 const string16 title(ASCIIToUTF16("foo")); | 1038 const string16 title(ASCIIToUTF16("foo")); |
1039 const GURL url("http://foo.com"); | 1039 const GURL url("http://foo.com"); |
1040 | 1040 |
1041 model_.AddURL(root, 0, title, url); | 1041 model_.AddURL(root, 0, title, url); |
1042 EXPECT_TRUE(model_.synced_node()->IsVisible()); | 1042 EXPECT_TRUE(model_.synced_node()->IsVisible()); |
1043 } | 1043 } |
1044 | 1044 |
1045 } // namespace | 1045 } // namespace |
OLD | NEW |