diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-29 23:58:00 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-29 23:58:00 +0000 |
commit | 724214aea569fd0fe6be1ecbacf9e7d8c5e87555 (patch) | |
tree | 604285f2a709a5cb6937df9ddf5ce9f11c5b844b /content/worker | |
parent | 0370485992fa455ca06c9cb7305e5ca0f8a010c0 (diff) | |
download | chromium_src-724214aea569fd0fe6be1ecbacf9e7d8c5e87555.zip chromium_src-724214aea569fd0fe6be1ecbacf9e7d8c5e87555.tar.gz chromium_src-724214aea569fd0fe6be1ecbacf9e7d8c5e87555.tar.bz2 |
Create an API around WorkerService that chrome consumes. Rename the existing WorkerService to WorkerServiceImpl and put it in the content namespace while at it. Also move WorkerServiceObserver to the public directory and into the content namespace.
BUG=98716
Review URL: http://codereview.chromium.org/9052007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/worker')
-rw-r--r-- | content/worker/test/worker_uitest.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/content/worker/test/worker_uitest.cc b/content/worker/test/worker_uitest.cc index 698062c..ed22c52 100644 --- a/content/worker/test/worker_uitest.cc +++ b/content/worker/test/worker_uitest.cc @@ -13,10 +13,12 @@ #include "chrome/test/base/layout_test_http_server.h" #include "chrome/test/base/ui_test_utils.h" #include "chrome/test/ui/ui_layout_test.h" -#include "content/browser/worker_host/worker_service.h" +#include "content/browser/worker_host/worker_service_impl.h" #include "content/public/common/url_constants.h" #include "net/test/test_server.h" +using content::WorkerServiceImpl; + namespace { const char kTestCompleteCookie[] = "status"; @@ -586,7 +588,7 @@ TEST_F(WorkerTest, FLAKY_MessagePorts) { #define MAYBE_LimitPerPage FLAKY_LimitPerPage #endif TEST_F(WorkerTest, MAYBE_LimitPerPage) { - int max_workers_per_tab = WorkerService::kMaxWorkersPerTabWhenSeparate; + int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), FilePath(kManyWorkersFile)); url = GURL(url.spec() + StringPrintf("?count=%d", max_workers_per_tab + 1)); @@ -601,8 +603,8 @@ TEST_F(WorkerTest, MAYBE_LimitPerPage) { // Possibly causing ui_tests to hang on Mac: http://crbug.com/88958 // Times out consistently on all platforms. TEST_F(WorkerTest, DISABLED_LimitTotal) { - int max_workers_per_tab = WorkerService::kMaxWorkersPerTabWhenSeparate; - int total_workers = WorkerService::kMaxWorkersWhenSeparate; + int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; + int total_workers = WorkerServiceImpl::kMaxWorkersWhenSeparate; int tab_count = (total_workers / max_workers_per_tab) + 1; GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), @@ -647,7 +649,7 @@ TEST_F(WorkerTest, FLAKY_WorkerClose) { TEST_F(WorkerTest, FLAKY_QueuedSharedWorkerShutdown) { // Tests to make sure that queued shared workers are started up when // shared workers shut down. - int max_workers_per_tab = WorkerService::kMaxWorkersPerTabWhenSeparate; + int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), FilePath(kQuerySharedWorkerShutdownFile)); url = GURL(url.spec() + StringPrintf("?count=%d", max_workers_per_tab)); @@ -665,7 +667,7 @@ TEST_F(WorkerTest, FLAKY_QueuedSharedWorkerShutdown) { TEST_F(WorkerTest, FLAKY_MultipleTabsQueuedSharedWorker) { // Tests to make sure that only one instance of queued shared workers are // started up even when those instances are on multiple tabs. - int max_workers_per_tab = WorkerService::kMaxWorkersPerTabWhenSeparate; + int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), FilePath(kManySharedWorkersFile)); url = GURL(url.spec() + StringPrintf("?count=%d", max_workers_per_tab+1)); @@ -699,7 +701,7 @@ TEST_F(WorkerTest, FLAKY_MultipleTabsQueuedSharedWorker) { TEST_F(WorkerTest, FLAKY_QueuedSharedWorkerStartedFromOtherTab) { // Tests to make sure that queued shared workers are started up when // an instance is launched from another tab. - int max_workers_per_tab = WorkerService::kMaxWorkersPerTabWhenSeparate; + int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), FilePath(kManySharedWorkersFile)); url = GURL(url.spec() + StringPrintf("?count=%d", max_workers_per_tab+1)); |