Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
828cc489
Commit
828cc489
authored
Apr 26, 2012
by
alokp@chromium.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced Token::Location::string with Token::Location::file.
git-svn-id:
https://angleproject.googlecode.com/svn/trunk@1056
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
ef1eaa04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
token_test.cpp
tests/preprocessor_tests/token_test.cpp
+5
-5
No files found.
tests/preprocessor_tests/token_test.cpp
View file @
828cc489
...
@@ -13,7 +13,7 @@ TEST(TokenTest, DefaultConstructor)
...
@@ -13,7 +13,7 @@ TEST(TokenTest, DefaultConstructor)
EXPECT_EQ
(
0
,
token
.
type
);
EXPECT_EQ
(
0
,
token
.
type
);
EXPECT_EQ
(
0
,
token
.
flags
);
EXPECT_EQ
(
0
,
token
.
flags
);
EXPECT_EQ
(
0
,
token
.
location
.
line
);
EXPECT_EQ
(
0
,
token
.
location
.
line
);
EXPECT_EQ
(
0
,
token
.
location
.
string
);
EXPECT_EQ
(
0
,
token
.
location
.
file
);
EXPECT_STREQ
(
""
,
token
.
value
.
c_str
());
EXPECT_STREQ
(
""
,
token
.
value
.
c_str
());
}
}
...
@@ -23,14 +23,14 @@ TEST(TokenTest, Assignment)
...
@@ -23,14 +23,14 @@ TEST(TokenTest, Assignment)
token
.
type
=
1
;
token
.
type
=
1
;
token
.
flags
=
1
;
token
.
flags
=
1
;
token
.
location
.
line
=
1
;
token
.
location
.
line
=
1
;
token
.
location
.
string
=
1
;
token
.
location
.
file
=
1
;
token
.
value
.
assign
(
"foo"
);
token
.
value
.
assign
(
"foo"
);
token
=
pp
::
Token
();
token
=
pp
::
Token
();
EXPECT_EQ
(
0
,
token
.
type
);
EXPECT_EQ
(
0
,
token
.
type
);
EXPECT_EQ
(
0
,
token
.
flags
);
EXPECT_EQ
(
0
,
token
.
flags
);
EXPECT_EQ
(
0
,
token
.
location
.
line
);
EXPECT_EQ
(
0
,
token
.
location
.
line
);
EXPECT_EQ
(
0
,
token
.
location
.
string
);
EXPECT_EQ
(
0
,
token
.
location
.
file
);
EXPECT_STREQ
(
""
,
token
.
value
.
c_str
());
EXPECT_STREQ
(
""
,
token
.
value
.
c_str
());
}
}
...
@@ -51,9 +51,9 @@ TEST(TokenTest, Equals)
...
@@ -51,9 +51,9 @@ TEST(TokenTest, Equals)
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
token
.
location
.
line
=
0
;
token
.
location
.
line
=
0
;
token
.
location
.
string
=
1
;
token
.
location
.
file
=
1
;
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
token
.
location
.
string
=
0
;
token
.
location
.
file
=
0
;
token
.
value
.
assign
(
"foo"
);
token
.
value
.
assign
(
"foo"
);
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
EXPECT_FALSE
(
token
.
equals
(
pp
::
Token
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment