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

Side by Side Diff: chrome/browser/history/multipart_browsertest.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
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 #include "base/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" 7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
12 #include "content/public/common/frame_navigate_params.h" 12 #include "content/public/common/frame_navigate_params.h"
13 #include "net/test/spawned_test_server/spawned_test_server.h" 13 #include "net/test/spawned_test_server/spawned_test_server.h"
14 14
15 class MultipartResponseTest : public InProcessBrowserTest, 15 class MultipartResponseTest : public InProcessBrowserTest,
(...skipping 21 matching lines...) Expand all
37 ASSERT_TRUE(test_server()->Start()); 37 ASSERT_TRUE(test_server()->Start());
38 38
39 Observe(browser()->tab_strip_model()->GetActiveWebContents()); 39 Observe(browser()->tab_strip_model()->GetActiveWebContents());
40 ui_test_utils::NavigateToURL(browser(), test_server()->GetURL("multipart")); 40 ui_test_utils::NavigateToURL(browser(), test_server()->GetURL("multipart"));
41 41
42 EXPECT_EQ(ASCIIToUTF16("page 9"), 42 EXPECT_EQ(ASCIIToUTF16("page 9"),
43 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle()); 43 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle());
44 EXPECT_EQ(1, update_history_count_); 44 EXPECT_EQ(1, update_history_count_);
45 EXPECT_GT(did_navigate_any_frame_count_, update_history_count_); 45 EXPECT_GT(did_navigate_any_frame_count_, update_history_count_);
46 } 46 }
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index_unittest.cc ('k') | chrome/browser/history/query_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698