OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/values.h" | 6 #include "base/values.h" |
7 #include "chrome/renderer/extensions/activity_log_converter_strategy.h" | 7 #include "extensions/renderer/activity_log_converter_strategy.h" |
8 #include "extensions/renderer/scoped_persistent.h" | 8 #include "extensions/renderer/scoped_persistent.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
11 | 11 |
12 using content::V8ValueConverter; | 12 using content::V8ValueConverter; |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class ActivityLogConverterStrategyTest : public testing::Test { | 16 class ActivityLogConverterStrategyTest : public testing::Test { |
17 public: | 17 public: |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 "[Array]")); | 163 "[Array]")); |
164 EXPECT_TRUE(VerifyString( | 164 EXPECT_TRUE(VerifyString( |
165 v8_object->Get(v8::String::NewFromUtf8(isolate_, "function")), | 165 v8_object->Get(v8::String::NewFromUtf8(isolate_, "function")), |
166 "[Function]")); | 166 "[Function]")); |
167 EXPECT_TRUE(VerifyString( | 167 EXPECT_TRUE(VerifyString( |
168 v8_object->Get(v8::String::NewFromUtf8(isolate_, "named_function")), | 168 v8_object->Get(v8::String::NewFromUtf8(isolate_, "named_function")), |
169 "[Function foo()]")); | 169 "[Function foo()]")); |
170 } | 170 } |
171 | 171 |
172 } // namespace extensions | 172 } // namespace extensions |
OLD | NEW |