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

Side by Side Diff: chrome/test/base/v8_unit_test.h

Issue 8820016: Don't attempt to forward declare StringPiece. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include order. Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/static_v8_external_string_resource.h ('k') | content/shell/shell.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_BASE_V8_UNIT_TEST_H_ 5 #ifndef CHROME_TEST_BASE_V8_UNIT_TEST_H_
6 #define CHROME_TEST_BASE_V8_UNIT_TEST_H_ 6 #define CHROME_TEST_BASE_V8_UNIT_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/string_piece.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
15 16
16 namespace base {
17 class StringPiece;
18 }
19
20 // A superclass for unit tests that involve running JavaScript. This class 17 // A superclass for unit tests that involve running JavaScript. This class
21 // sets up V8 context and has methods that make it easy to execute scripts in 18 // sets up V8 context and has methods that make it easy to execute scripts in
22 // this context as well as call functions in the context. 19 // this context as well as call functions in the context.
23 class V8UnitTest : public testing::Test { 20 class V8UnitTest : public testing::Test {
24 public: 21 public:
25 V8UnitTest(); 22 V8UnitTest();
26 virtual ~V8UnitTest(); 23 virtual ~V8UnitTest();
27 24
28 // Methods from testing::Test. 25 // Methods from testing::Test.
29 virtual void SetUp() OVERRIDE; 26 virtual void SetUp() OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 v8::HandleScope handle_scope_; 79 v8::HandleScope handle_scope_;
83 80
84 // Context for the JavaScript in the test. 81 // Context for the JavaScript in the test.
85 v8::Handle<v8::Context> context_; 82 v8::Handle<v8::Context> context_;
86 83
87 // User added libraries. 84 // User added libraries.
88 std::vector<FilePath> user_libraries_; 85 std::vector<FilePath> user_libraries_;
89 }; 86 };
90 87
91 #endif // CHROME_TEST_BASE_V8_UNIT_TEST_H_ 88 #endif // CHROME_TEST_BASE_V8_UNIT_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/static_v8_external_string_resource.h ('k') | content/shell/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698