OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ |
6 #define CHROME_TEST_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
29 class TestSessionService | 29 class TestSessionService |
30 : public SessionServiceTestHelper, | 30 : public SessionServiceTestHelper, |
31 public base::RefCountedThreadSafe<TestSessionService> { | 31 public base::RefCountedThreadSafe<TestSessionService> { |
32 public: | 32 public: |
33 TestSessionService() | 33 TestSessionService() |
34 : SessionServiceTestHelper(), | 34 : SessionServiceTestHelper(), |
35 done_saving_(false, false), | 35 done_saving_(false, false), |
36 got_windows_(false, false), | 36 got_windows_(false, false), |
37 profile_(NULL), | 37 profile_(NULL), |
38 window_bounds_(0, 1, 2, 3) {} | 38 window_bounds_(0, 1, 2, 3) {} |
39 TestSessionService(SessionService * service, | 39 TestSessionService(SessionService* service, Profile* profile) |
40 Profile* profile) | |
41 : SessionServiceTestHelper(service), | 40 : SessionServiceTestHelper(service), |
42 done_saving_(false, false), | 41 done_saving_(false, false), |
43 got_windows_(false, false), | 42 got_windows_(false, false), |
44 profile_(profile), | 43 profile_(profile), |
45 window_bounds_(0, 1, 2, 3) {} | 44 window_bounds_(0, 1, 2, 3) {} |
46 | 45 |
47 void SetUp() { | 46 void SetUp() { |
48 ASSERT_TRUE(service()) << "SetUp() called without setting SessionService"; | 47 ASSERT_TRUE(service()) << "SetUp() called without setting SessionService"; |
49 ASSERT_TRUE(profile_); | 48 ASSERT_TRUE(profile_); |
50 service()->SetWindowType(window_id_, Browser::TYPE_NORMAL); | 49 service()->SetWindowType(window_id_, Browser::TYPE_NORMAL); |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 public: | 407 public: |
409 MultipleClientLiveSessionsSyncTest() | 408 MultipleClientLiveSessionsSyncTest() |
410 : LiveSessionsSyncTest(MULTIPLE_CLIENT) {} | 409 : LiveSessionsSyncTest(MULTIPLE_CLIENT) {} |
411 virtual ~MultipleClientLiveSessionsSyncTest() {} | 410 virtual ~MultipleClientLiveSessionsSyncTest() {} |
412 | 411 |
413 private: | 412 private: |
414 DISALLOW_COPY_AND_ASSIGN(MultipleClientLiveSessionsSyncTest); | 413 DISALLOW_COPY_AND_ASSIGN(MultipleClientLiveSessionsSyncTest); |
415 }; | 414 }; |
416 | 415 |
417 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ | 416 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SESSIONS_SYNC_TEST_H_ |
OLD | NEW |