| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 335 |
| 336 NavigationEntry* entry = browser()->tab_strip_model()-> | 336 NavigationEntry* entry = browser()->tab_strip_model()-> |
| 337 GetActiveWebContents()->GetController().GetLastCommittedEntry(); | 337 GetActiveWebContents()->GetController().GetLastCommittedEntry(); |
| 338 ASSERT_TRUE(entry != NULL); | 338 ASSERT_TRUE(entry != NULL); |
| 339 EXPECT_EQ(url_rewritten, entry->GetURL()); | 339 EXPECT_EQ(url_rewritten, entry->GetURL()); |
| 340 EXPECT_EQ(url_original, entry->GetVirtualURL()); | 340 EXPECT_EQ(url_original, entry->GetVirtualURL()); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace content | 343 } // namespace content |
| 344 #endif // !defined(OS_ANDROID) | 344 #endif // !defined(OS_ANDROID) |
| 345 |
| 346 class ChromeContentBrowserClientGetLoggingFileTest : public testing::Test {}; |
| 347 |
| 348 TEST_F(ChromeContentBrowserClientGetLoggingFileTest, GetLoggingFile) { |
| 349 ChromeContentBrowserClient client; |
| 350 base::FilePath log_file_name; |
| 351 EXPECT_FALSE(client.GetLoggingFileName().empty()); |
| 352 } |
| OLD | NEW |