| 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 #import <Carbon/Carbon.h> | 5 #import <Carbon/Carbon.h> | 
| 6 #import <Cocoa/Cocoa.h> | 6 #import <Cocoa/Cocoa.h> | 
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> | 
| 8 #import <Foundation/NSAppleEventDescriptor.h> | 8 #import <Foundation/NSAppleEventDescriptor.h> | 
| 9 #import <objc/message.h> | 9 #import <objc/message.h> | 
| 10 #import <objc/runtime.h> | 10 #import <objc/runtime.h> | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24 #include "chrome/browser/history/history_service_factory.h" | 24 #include "chrome/browser/history/history_service_factory.h" | 
| 25 #include "chrome/browser/profiles/profile_attributes_entry.h" | 25 #include "chrome/browser/profiles/profile_attributes_entry.h" | 
| 26 #include "chrome/browser/profiles/profile_attributes_storage.h" | 26 #include "chrome/browser/profiles/profile_attributes_storage.h" | 
| 27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" | 
| 28 #include "chrome/browser/ui/browser.h" | 28 #include "chrome/browser/ui/browser.h" | 
| 29 #include "chrome/browser/ui/browser_list.h" | 29 #include "chrome/browser/ui/browser_list.h" | 
| 30 #include "chrome/browser/ui/browser_navigator_params.h" | 30 #include "chrome/browser/ui/browser_navigator_params.h" | 
| 31 #include "chrome/browser/ui/browser_window.h" | 31 #include "chrome/browser/ui/browser_window.h" | 
| 32 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" | 32 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" | 
| 33 #include "chrome/browser/ui/cocoa/history_menu_bridge.h" | 33 #include "chrome/browser/ui/cocoa/history_menu_bridge.h" | 
| 34 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 34 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" | 
| 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
| 36 #include "chrome/browser/ui/user_manager.h" | 36 #include "chrome/browser/ui/user_manager.h" | 
| 37 #include "chrome/common/chrome_constants.h" | 37 #include "chrome/common/chrome_constants.h" | 
| 38 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" | 
| 39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" | 
| 40 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" | 
| 41 #include "chrome/test/base/in_process_browser_test.h" | 41 #include "chrome/test/base/in_process_browser_test.h" | 
| 42 #include "chrome/test/base/ui_test_utils.h" | 42 #include "chrome/test/base/ui_test_utils.h" | 
| 43 #include "components/bookmarks/browser/bookmark_model.h" | 43 #include "components/bookmarks/browser/bookmark_model.h" | 
| 44 #include "components/bookmarks/test/bookmark_test_helpers.h" | 44 #include "components/bookmarks/test/bookmark_test_helpers.h" | 
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 689   ui_test_utils::NavigateToURL(browser3, test_url1); | 689   ui_test_utils::NavigateToURL(browser3, test_url1); | 
| 690   EXPECT_EQ(g_handoff_url, GURL()); | 690   EXPECT_EQ(g_handoff_url, GURL()); | 
| 691 | 691 | 
| 692   // Activate the original browser window. | 692   // Activate the original browser window. | 
| 693   Browser* browser1 = active_browser_list->get(0); | 693   Browser* browser1 = active_browser_list->get(0); | 
| 694   browser1->window()->Show(); | 694   browser1->window()->Show(); | 
| 695   EXPECT_EQ(g_handoff_url, test_url2); | 695   EXPECT_EQ(g_handoff_url, test_url2); | 
| 696 } | 696 } | 
| 697 | 697 | 
| 698 }  // namespace | 698 }  // namespace | 
| OLD | NEW | 
|---|