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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest.mm

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 #import "chrome/browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest .h" 5 #import "chrome/browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest .h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/test/base/testing_profile.h" 8 #include "chrome/test/base/testing_profile.h"
9 #include "components/bookmarks/core/browser/bookmark_model.h" 9 #include "components/bookmarks/browser/bookmark_model.h"
10 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 10 #include "components/bookmarks/test/bookmark_test_helpers.h"
11 11
12 @implementation FakeAppDelegate 12 @implementation FakeAppDelegate
13 13
14 @synthesize test = test_; 14 @synthesize test = test_;
15 15
16 - (Profile*)lastProfile { 16 - (Profile*)lastProfile {
17 if (!test_) 17 if (!test_)
18 return NULL; 18 return NULL;
19 return test_->profile(); 19 return test_->profile();
20 } 20 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 [appDelegate_.get() setTest:this]; 64 [appDelegate_.get() setTest:this];
65 DCHECK([NSApp delegate] == nil); 65 DCHECK([NSApp delegate] == nil);
66 [NSApp setDelegate:appDelegate_]; 66 [NSApp setDelegate:appDelegate_];
67 BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile()); 67 BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
68 const BookmarkNode* root = model->bookmark_bar_node(); 68 const BookmarkNode* root = model->bookmark_bar_node();
69 const std::string modelString("a f1:[ b d c ] d f2:[ e f g ] h "); 69 const std::string modelString("a f1:[ b d c ] d f2:[ e f g ] h ");
70 test::AddNodesFromModelString(model, root, modelString); 70 test::AddNodesFromModelString(model, root, modelString);
71 bookmarkBar_.reset([[BookmarkFolderAppleScript alloc] 71 bookmarkBar_.reset([[BookmarkFolderAppleScript alloc]
72 initWithBookmarkNode:model->bookmark_bar_node()]); 72 initWithBookmarkNode:model->bookmark_bar_node()]);
73 } 73 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/cocoa/applescript/bookmark_folder_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698