OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/system_monitor.h" | 5 #include "app/system_monitor.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 | 1506 |
1507 typedef MockTabStripModelObserver::State State; | 1507 typedef MockTabStripModelObserver::State State; |
1508 | 1508 |
1509 #if defined(OS_WIN) | 1509 #if defined(OS_WIN) |
1510 FilePath path(FILE_PATH_LITERAL("c:\\foo")); | 1510 FilePath path(FILE_PATH_LITERAL("c:\\foo")); |
1511 #elif defined(OS_POSIX) | 1511 #elif defined(OS_POSIX) |
1512 FilePath path(FILE_PATH_LITERAL("/foo")); | 1512 FilePath path(FILE_PATH_LITERAL("/foo")); |
1513 #endif | 1513 #endif |
1514 scoped_refptr<Extension> extension_app(new Extension(path, | 1514 scoped_refptr<Extension> extension_app(new Extension(path, |
1515 Extension::INVALID)); | 1515 Extension::INVALID)); |
1516 extension_app->mutable_static_data_->launch_web_url = "http://www.google.com"; | 1516 extension_app->launch_web_url_ = "http://www.google.com"; |
1517 TabContents* contents1 = CreateTabContents(); | 1517 TabContents* contents1 = CreateTabContents(); |
1518 contents1->SetExtensionApp(extension_app); | 1518 contents1->SetExtensionApp(extension_app); |
1519 TabContents* contents2 = CreateTabContents(); | 1519 TabContents* contents2 = CreateTabContents(); |
1520 contents2->SetExtensionApp(extension_app); | 1520 contents2->SetExtensionApp(extension_app); |
1521 TabContents* contents3 = CreateTabContents(); | 1521 TabContents* contents3 = CreateTabContents(); |
1522 | 1522 |
1523 SetID(contents1, 1); | 1523 SetID(contents1, 1); |
1524 SetID(contents2, 2); | 1524 SetID(contents2, 2); |
1525 SetID(contents3, 3); | 1525 SetID(contents3, 3); |
1526 | 1526 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 strip.ReplaceTabContentsAt(1, new_contents); | 1822 strip.ReplaceTabContentsAt(1, new_contents); |
1823 | 1823 |
1824 ASSERT_EQ(1, tabstrip_observer.GetStateCount()); | 1824 ASSERT_EQ(1, tabstrip_observer.GetStateCount()); |
1825 | 1825 |
1826 state = State(new_contents, 1, MockTabStripModelObserver::REPLACED); | 1826 state = State(new_contents, 1, MockTabStripModelObserver::REPLACED); |
1827 state.src_contents = third_contents; | 1827 state.src_contents = third_contents; |
1828 EXPECT_TRUE(tabstrip_observer.StateEquals(0, state)); | 1828 EXPECT_TRUE(tabstrip_observer.StateEquals(0, state)); |
1829 | 1829 |
1830 strip.CloseAllTabs(); | 1830 strip.CloseAllTabs(); |
1831 } | 1831 } |
OLD | NEW |