Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_browsertest.cc

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "base/timer/timer.h" 7 #include "base/timer/timer.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/browser_commands.h" 15 #include "chrome/browser/ui/browser_commands.h"
16 #include "chrome/browser/ui/browser_window.h" 16 #include "chrome/browser/ui/browser_window.h"
17 #include "chrome/browser/ui/host_desktop.h" 17 #include "chrome/browser/ui/host_desktop.h"
18 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
19 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "components/bookmarks/core/browser/bookmark_model.h" 20 #include "components/bookmarks/browser/bookmark_model.h"
21 #include "components/bookmarks/core/browser/bookmark_utils.h" 21 #include "components/bookmarks/browser/bookmark_utils.h"
22 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 22 #include "components/bookmarks/test/bookmark_test_helpers.h"
23 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
24 #include "content/public/test/browser_test_utils.h" 24 #include "content/public/test/browser_test_utils.h"
25 25
26 namespace { 26 namespace {
27 const char kPersistBookmarkURL[] = "http://www.cnn.com/"; 27 const char kPersistBookmarkURL[] = "http://www.cnn.com/";
28 const char kPersistBookmarkTitle[] = "CNN"; 28 const char kPersistBookmarkTitle[] = "CNN";
29 } 29 }
30 30
31 class BookmarkBrowsertest : public InProcessBrowserTest { 31 class BookmarkBrowsertest : public InProcessBrowserTest {
32 public: 32 public:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bookmark_model1, GURL(kPersistBookmarkURL), 124 bookmark_model1, GURL(kPersistBookmarkURL),
125 base::ASCIIToUTF16(kPersistBookmarkTitle)); 125 base::ASCIIToUTF16(kPersistBookmarkTitle));
126 std::vector<BookmarkService::URLAndTitle> urls1, urls2; 126 std::vector<BookmarkService::URLAndTitle> urls1, urls2;
127 bookmark_model1->GetBookmarks(&urls1); 127 bookmark_model1->GetBookmarks(&urls1);
128 bookmark_model2->GetBookmarks(&urls2); 128 bookmark_model2->GetBookmarks(&urls2);
129 ASSERT_EQ(1u, urls1.size()); 129 ASSERT_EQ(1u, urls1.size());
130 ASSERT_TRUE(urls2.empty()); 130 ASSERT_TRUE(urls2.empty());
131 } 131 }
132 132
133 #endif 133 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698