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

Side by Side Diff: components/test_runner/test_common.cc

Issue 1787643003: Remove initializeWithoutV8 and shutdownWithoutV8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/test_runner/test_common.h" 5 #include "components/test_runner/test_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 const char file_url_pattern[] = "file:/"; 22 const char file_url_pattern[] = "file:/";
23 const char file_test_prefix[] = "(file test):"; 23 const char file_test_prefix[] = "(file test):";
24 const char data_url_pattern[] = "data:"; 24 const char data_url_pattern[] = "data:";
25 const std::string::size_type data_url_pattern_size = 25 const std::string::size_type data_url_pattern_size =
26 sizeof(data_url_pattern) - 1; 26 sizeof(data_url_pattern) - 1;
27 27
28 // This mock is used to initialize blink. 28 // This mock is used to initialize blink.
29 class MockBlinkPlatform : NON_EXPORTED_BASE(public blink::Platform) { 29 class MockBlinkPlatform : NON_EXPORTED_BASE(public blink::Platform) {
30 public: 30 public:
31 MockBlinkPlatform() { 31 MockBlinkPlatform() {
32 blink::initializeWithoutV8(this); 32 blink::Platform::initialize(this);
33 } 33 }
34 ~MockBlinkPlatform() override {} 34 ~MockBlinkPlatform() override {}
35 35
36 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, 36 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*,
37 const char* name) override {} 37 const char* name) override {}
38 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {} 38 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {}
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockBlinkPlatform); 41 DISALLOW_COPY_AND_ASSIGN(MockBlinkPlatform);
42 }; 42 };
(...skipping 16 matching lines...) Expand all
59 result.replace(data_url_pattern_size, url.length(), path); 59 result.replace(data_url_pattern_size, url.length(), path);
60 } 60 }
61 return result; 61 return result;
62 } 62 }
63 63
64 void EnsureBlinkInitialized() { 64 void EnsureBlinkInitialized() {
65 g_mock_blink_platform.Get(); 65 g_mock_blink_platform.Get();
66 } 66 }
67 67
68 } // namespace test_runner 68 } // namespace test_runner
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698