| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_nsobject.h" | 8 #include "base/memory/scoped_nsobject.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #import "chrome/browser/app_controller_mac.h" | 10 #import "chrome/browser/app_controller_mac.h" |
| 11 #import "chrome/browser/ui/browser.h" |
| 11 #import "chrome/browser/ui/browser_list.h" | 12 #import "chrome/browser/ui/browser_list.h" |
| 12 #import "chrome/common/chrome_switches.h" | 13 #import "chrome/common/chrome_switches.h" |
| 13 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 class AppControllerPlatformAppBrowserTest : public InProcessBrowserTest { | 20 class AppControllerPlatformAppBrowserTest : public InProcessBrowserTest { |
| 20 protected: | 21 protected: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 66 |
| 66 EXPECT_FALSE(result); | 67 EXPECT_FALSE(result); |
| 67 EXPECT_EQ(2u, BrowserList::size()); | 68 EXPECT_EQ(2u, BrowserList::size()); |
| 68 | 69 |
| 69 Browser* browser = *(BrowserList::begin()); | 70 Browser* browser = *(BrowserList::begin()); |
| 70 GURL current_url = browser->GetSelectedWebContents()->GetURL(); | 71 GURL current_url = browser->GetSelectedWebContents()->GetURL(); |
| 71 EXPECT_EQ(GetAppURL(), current_url.spec()); | 72 EXPECT_EQ(GetAppURL(), current_url.spec()); |
| 72 } | 73 } |
| 73 | 74 |
| 74 } // namespace | 75 } // namespace |
| OLD | NEW |