WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
36489
[DRT/Chromium] Add TestNavigationController and TestWebWorker
https://bugs.webkit.org/show_bug.cgi?id=36489
Summary
[DRT/Chromium] Add TestNavigationController and TestWebWorker
Kent Tamura
Reported
2010-03-23 05:50:40 PDT
[DRT/Chromium] Add TestNavigationController and TestWebWorker
Attachments
Patch
(22.19 KB, patch)
2010-03-23 05:56 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Proposed patch (rev.2)
(22.17 KB, patch)
2010-03-23 20:47 PDT
,
Kent Tamura
dglazkov
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2010-03-23 05:56:11 PDT
Created
attachment 51415
[details]
Patch
Dimitri Glazkov (Google)
Comment 2
2010-03-23 09:46:02 PDT
Comment on
attachment 51415
[details]
Patch Why do we need TestNavigationController in its full glory in DRT? Most of its work is focused around providing a simple browser, which we don't need here.
> + > +// ---------------------------------------------------------------------------- > +// TestNavigationEntry > + > +TestNavigationEntry::TestNavigationEntry() > + : m_pageID(-1) {} > + > +TestNavigationEntry::TestNavigationEntry( > + int pageID, const GURL& url, const WebString& title, const WebString& targetFrame)
Can we use WebURL here -- or at least put a FIXME?
> + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ > + > +#ifndef TestNavigationController_h > +#define TestNavigationController_h > + > +#include "base/basictypes.h" > +#include "base/linked_ptr.h" > +#include "base/ref_counted.h"
It would be good to use WTF types here, but a FIXME should suffice for now.
> +#define TestWebWorker_h > + > +#include "base/basictypes.h"
No need for this here.
Kent Tamura
Comment 3
2010-03-23 20:47:05 PDT
Created
attachment 51476
[details]
Proposed patch (rev.2)
Kent Tamura
Comment 4
2010-03-23 20:50:39 PDT
(In reply to
comment #2
)
> (From update of
attachment 51415
[details]
) > Why do we need TestNavigationController in its full glory in DRT? Most of its > work is focused around providing a simple browser, which we don't need here.
We need it to produce the output of layoutTestControler.dumpBackForwardList.
> > +TestNavigationEntry::TestNavigationEntry( > > + int pageID, const GURL& url, const WebString& title, const WebString& targetFrame) > > Can we use WebURL here -- or at least put a FIXME?
Replaced GURL with WebURL.
> > +#include "base/basictypes.h" > > +#include "base/linked_ptr.h" > > +#include "base/ref_counted.h" > > It would be good to use WTF types here, but a FIXME should suffice for now.
Removed ref_counted.h, which was not used in this file. I think no WTF alternative for linked_ptr.h.
> > +#define TestWebWorker_h > > + > > +#include "base/basictypes.h" > > No need for this here.
Right. Removed.
Dimitri Glazkov (Google)
Comment 5
2010-03-23 21:04:41 PDT
Comment on
attachment 51476
[details]
Proposed patch (rev.2) ok. I don't think we'll need some of the methods TestNavigationController provides, but we can refactor this later.
Kent Tamura
Comment 6
2010-03-23 22:56:08 PDT
Landed as
r56434
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug