| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 DISALLOW_COPY_AND_ASSIGN(TestGinObject); | 35 DISALLOW_COPY_AND_ASSIGN(TestGinObject); |
| 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 virtual ~GinBrowserTest() {} | 43 virtual ~GinBrowserTest() {} |
| 44 | 44 |
| 45 virtual void SetUp() OVERRIDE { | 45 virtual void SetUp() override { |
| 46 CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 46 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 }; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 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 |
| OLD | NEW |