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

Side by Side Diff: chrome/browser/images_uitest.cc

Issue 329017: Remove deprecated CommandLine(std::wstring) ctor. (Closed)
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/platform_thread.h" 7 #include "base/platform_thread.h"
8 #include "chrome/test/ui/ui_test.h" 8 #include "chrome/test/ui/ui_test.h"
9 9
10 class ImagesTest : public UITest { 10 class ImagesTest : public UITest {
11 protected: 11 protected:
12 ImagesTest() : UITest() { 12 ImagesTest() : UITest() {
13 FilePath path(test_data_directory_); 13 FilePath path(test_data_directory_);
14 path = path.AppendASCII("animated-gifs.html"); 14 path = path.AppendASCII("animated-gifs.html");
15 launch_arguments_ = CommandLine(L""); 15 launch_arguments_ = CommandLine(CommandLine::ARGUMENTS_ONLY);
16 launch_arguments_.AppendLooseValue(path.ToWStringHack()); 16 launch_arguments_.AppendLooseValue(path.ToWStringHack());
17 } 17 }
18 }; 18 };
19 19
20 TEST_F(ImagesTest, AnimatedGIFs) { 20 TEST_F(ImagesTest, AnimatedGIFs) {
21 std::wstring page_title = L"animated gif test"; 21 std::wstring page_title = L"animated gif test";
22 22
23 // Let the GIFs fully animate. 23 // Let the GIFs fully animate.
24 for (int i = 0; i < 10; ++i) { 24 for (int i = 0; i < 10; ++i) {
25 PlatformThread::Sleep(sleep_timeout_ms()); 25 PlatformThread::Sleep(sleep_timeout_ms());
26 if (page_title == GetActiveTabTitle()) 26 if (page_title == GetActiveTabTitle())
27 break; 27 break;
28 } 28 }
29 29
30 // Make sure the navigation succeeded. 30 // Make sure the navigation succeeded.
31 EXPECT_EQ(page_title, GetActiveTabTitle()); 31 EXPECT_EQ(page_title, GetActiveTabTitle());
32 32
33 // Tau will check if this crashed. 33 // Tau will check if this crashed.
34 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run_win.cc ('k') | chrome/browser/net/chrome_url_request_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698