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

Side by Side Diff: chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc

Issue 15949029: Use a direct include of utf_string_conversions.h in chrome/browser/ui/, 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 "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h" 5 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h"
6 6
7 #include "base/rand_util.h" 7 #include "base/rand_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/sync/glue/session_model_associator.h" 11 #include "chrome/browser/sync/glue/session_model_associator.h"
12 #include "sync/protocol/session_specifics.pb.h" 12 #include "sync/protocol/session_specifics.pb.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 const char kBaseSessionTag[] = "session_tag"; 17 const char kBaseSessionTag[] = "session_tag";
18 const char kBaseSessionName[] = "session_name"; 18 const char kBaseSessionName[] = "session_name";
19 const char kBaseTabUrl[] = "http://foo/?"; 19 const char kBaseTabUrl[] = "http://foo/?";
20 const char kTabTitleFormat[] = "session=%d;window=%d;tab=%d"; 20 const char kTabTitleFormat[] = "session=%d;window=%d;tab=%d";
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 tab->set_current_navigation_index(0); 269 tab->set_current_navigation_index(0);
270 tab->set_pinned(true); 270 tab->set_pinned(true);
271 tab->set_extension_app_id("app_id"); 271 tab->set_extension_app_id("app_id");
272 sync_pb::TabNavigation* navigation = tab->add_navigation(); 272 sync_pb::TabNavigation* navigation = tab->add_navigation();
273 navigation->set_virtual_url(ToTabUrl(session_id, window_id, tab_id)); 273 navigation->set_virtual_url(ToTabUrl(session_id, window_id, tab_id));
274 navigation->set_referrer("referrer"); 274 navigation->set_referrer("referrer");
275 navigation->set_title(UTF16ToUTF8(GetTabTitle( 275 navigation->set_title(UTF16ToUTF8(GetTabTitle(
276 session_index, window_index, tab_index))); 276 session_index, window_index, tab_index)));
277 navigation->set_page_transition(sync_pb::SyncEnums_PageTransition_TYPED); 277 navigation->set_page_transition(sync_pb::SyncEnums_PageTransition_TYPED);
278 } 278 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/encoding_menu_controller.cc ('k') | chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698