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

Side by Side Diff: content/browser/shared_worker/shared_worker_instance_unittest.cc

Issue 411283002: Remove disable-embedded-shared-worker flag and shared worker process related codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/shared_worker/shared_worker_instance.h" 9 #include "content/browser/shared_worker/shared_worker_instance.h"
10 #include "content/browser/worker_host/worker_storage_partition.h" 10 #include "content/browser/shared_worker/worker_storage_partition.h"
11 #include "content/public/test/test_browser_context.h" 11 #include "content/public/test/test_browser_context.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class SharedWorkerInstanceTest : public testing::Test { 16 class SharedWorkerInstanceTest : public testing::Test {
17 protected: 17 protected:
18 SharedWorkerInstanceTest() 18 SharedWorkerInstanceTest()
19 : browser_context_(new TestBrowserContext()), 19 : browser_context_(new TestBrowserContext()),
20 partition_( 20 partition_(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 EXPECT_TRUE(Matches(instance2, "http://example.com/w2.js", "name")); 74 EXPECT_TRUE(Matches(instance2, "http://example.com/w2.js", "name"));
75 EXPECT_FALSE(Matches(instance2, "http://example.net/w.js", "name")); 75 EXPECT_FALSE(Matches(instance2, "http://example.net/w.js", "name"));
76 EXPECT_FALSE(Matches(instance2, "http://example.net/w2.js", "name")); 76 EXPECT_FALSE(Matches(instance2, "http://example.net/w2.js", "name"));
77 EXPECT_FALSE(Matches(instance2, "http://example.com/w.js", "name2")); 77 EXPECT_FALSE(Matches(instance2, "http://example.com/w.js", "name2"));
78 EXPECT_FALSE(Matches(instance2, "http://example.com/w2.js", "name2")); 78 EXPECT_FALSE(Matches(instance2, "http://example.com/w2.js", "name2"));
79 EXPECT_FALSE(Matches(instance2, "http://example.net/w.js", "name2")); 79 EXPECT_FALSE(Matches(instance2, "http://example.net/w.js", "name2"));
80 EXPECT_FALSE(Matches(instance2, "http://example.net/w2.js", "name2")); 80 EXPECT_FALSE(Matches(instance2, "http://example.net/w2.js", "name2"));
81 } 81 }
82 82
83 } // namespace content 83 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_instance.h ('k') | content/browser/shared_worker/shared_worker_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698