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

Unified Diff: chrome/test/ui/ui_test.h

Issue 165393: Add a UI test for "Encoding" menu. Please see crbug.com/5515 for more details... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/ui/ui_test.h
===================================================================
--- chrome/test/ui/ui_test.h (revision 23177)
+++ chrome/test/ui/ui_test.h (working copy)
@@ -263,6 +263,17 @@
// own the handle returned.
base::ProcessHandle process() { return process_; }
+ // Wait for |generated_file| to be ready and then compare it with
+ // |original_file| to see if they're identical or not if |compare_file| is
+ // true. If |need_equal| is true, they need to be identical. Otherwise,
+ // they should be different. This function will delete the generated file if
+ // the parameter |delete_generated_file| is true.
+ void WaitForGeneratedFileAndCheck(const FilePath& generated_file,
+ const FilePath& original_file,
+ bool compare_files,
+ bool need_equal,
+ bool delete_generated_file);
+
public:
// Get/Set a flag to run the renderer in process when running the
// tests.
@@ -383,9 +394,17 @@
// error.
DictionaryValue* GetDefaultProfilePreferences();
+ // Generate the file path for testing a particular test.
+ // The file for the tests is all located in
+ // test_root_directory\test_directory\<testcase>
+ // The returned path is FilePath format.
+ static FilePath GetTestFilePath(const std::wstring& test_directory,
+ const std::wstring& test_case);
+
// Generate the URL for testing a particular test.
// HTML for the tests is all located in
// test_root_directory\test_directory\<testcase>
+ // The returned path is GURL format.
static GURL GetTestUrl(const std::wstring& test_directory,
const std::wstring &test_case);
« no previous file with comments | « chrome/test/data/encoding_tests/user_override/gb18030_with_iso88591_meta.html ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698