| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/timer.h" | 6 #include "base/timer.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bookmark_model1, GURL(kPersistBookmarkURL), | 120 bookmark_model1, GURL(kPersistBookmarkURL), |
| 121 ASCIIToUTF16(kPersistBookmarkTitle)); | 121 ASCIIToUTF16(kPersistBookmarkTitle)); |
| 122 std::vector<BookmarkService::URLAndTitle> urls1, urls2; | 122 std::vector<BookmarkService::URLAndTitle> urls1, urls2; |
| 123 bookmark_model1->GetBookmarks(&urls1); | 123 bookmark_model1->GetBookmarks(&urls1); |
| 124 bookmark_model2->GetBookmarks(&urls2); | 124 bookmark_model2->GetBookmarks(&urls2); |
| 125 ASSERT_EQ(1u, urls1.size()); | 125 ASSERT_EQ(1u, urls1.size()); |
| 126 ASSERT_TRUE(urls2.empty()); | 126 ASSERT_TRUE(urls2.empty()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 #endif | 129 #endif |
| OLD | NEW |