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

Side by Side Diff: content/renderer/gin_browsertest.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/command_line.h" 5 #include "base/command_line.h"
6 #include "content/public/common/content_switches.h" 6 #include "content/public/common/content_switches.h"
7 #include "content/public/test/render_view_test.h" 7 #include "content/public/test/render_view_test.h"
8 #include "content/renderer/render_view_impl.h" 8 #include "content/renderer/render_view_impl.h"
9 #include "gin/handle.h" 9 #include "gin/handle.h"
10 #include "gin/per_isolate_data.h" 10 #include "gin/per_isolate_data.h"
(...skipping 25 matching lines...) Expand all
36 }; 36 };
37 37
38 gin::WrapperInfo TestGinObject::kWrapperInfo = { gin::kEmbedderNativeGin }; 38 gin::WrapperInfo TestGinObject::kWrapperInfo = { gin::kEmbedderNativeGin };
39 39
40 class GinBrowserTest : public RenderViewTest { 40 class GinBrowserTest : public RenderViewTest {
41 public: 41 public:
42 GinBrowserTest() {} 42 GinBrowserTest() {}
43 ~GinBrowserTest() override {} 43 ~GinBrowserTest() override {}
44 44
45 void SetUp() override { 45 void SetUp() override {
46 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 46 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
47 switches::kJavaScriptFlags, "--expose_gc"); 47 switches::kJavaScriptFlags, "--expose_gc");
48 48
49 RenderViewTest::SetUp(); 49 RenderViewTest::SetUp();
50 } 50 }
51 51
52 private: 52 private:
53 53
54 DISALLOW_COPY_AND_ASSIGN(GinBrowserTest); 54 DISALLOW_COPY_AND_ASSIGN(GinBrowserTest);
55 }; 55 };
56 56
(...skipping 19 matching lines...) Expand all
76 76
77 // Should not crash. 77 // Should not crash.
78 blink::mainThreadIsolate()->LowMemoryNotification(); 78 blink::mainThreadIsolate()->LowMemoryNotification();
79 79
80 CHECK(!alive); 80 CHECK(!alive);
81 } 81 }
82 82
83 } // namespace 83 } // namespace
84 84
85 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/dom_serializer_browsertest.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698